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',
|
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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue