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:
parent
5798da7368
commit
eaa530e16d
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue