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', name = 'sumneko_lua',
ft = 'lua', ft = 'lua',
setup = function(server, settings, override) setup = function(server, settings, override)
-- Globally enable Neovim support require('neodev').setup({ lspconfig = false })
require('lua-dev').setup(override({
override = function(_, o)
o.enabled = true
o.runtime = true
o.types = true
o.plugins = true
end
}))
server.setup(settings) local defaults = {
before_init = require('neodev.lsp').before_init
}
server.setup(override(
vim.tbl_deep_extend('keep', settings, defaults))
)
end, end,
} }

View File

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