nvim/plug: lua-dev -> neodev

plugin was renamed upstream, and now provides a hook for lspconfig,
making our override/1 work more in line with the standard 'override
the lspconfig.setup/1 param' that most of the other presets follow.
This commit is contained in:
Paul Stemmet 2022-10-29 20:15:44 +00:00
parent 5798da7368
commit eaa530e16d
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
2 changed files with 10 additions and 12 deletions

View File

@ -63,17 +63,15 @@ M.Lua = {
name = 'sumneko_lua',
ft = 'lua',
setup = function(server, settings, override)
-- Globally enable Neovim support
require('lua-dev').setup(override({
override = function(_, o)
o.enabled = true
o.runtime = true
o.types = true
o.plugins = true
end
}))
require('neodev').setup({ lspconfig = false })
server.setup(settings)
local defaults = {
before_init = require('neodev.lsp').before_init
}
server.setup(override(
vim.tbl_deep_extend('keep', settings, defaults))
)
end,
}

View File

@ -103,8 +103,8 @@ local plugins = {
config = require 'psoxizsh.plugins.config.nlsp-settings'
},
{ 'simrat39/rust-tools.nvim' },
{ 'folke/lua-dev.nvim',
as = 'lua-dev',
{ 'folke/neodev.nvim',
as = 'neodev',
},
{ 'vim-perl/vim-perl',
ft = 'perl',