feat(nvim): add neodev.nvim
This commit is contained in:
parent
403d88f161
commit
55d8df866b
2 changed files with 14 additions and 1 deletions
|
@ -123,7 +123,6 @@ with builtins;
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{ plugin = which-key-nvim; }
|
{ plugin = which-key-nvim; }
|
||||||
{ plugin = lspkind-nvim; }
|
|
||||||
{ plugin = lsp_lines-nvim; }
|
{ plugin = lsp_lines-nvim; }
|
||||||
{
|
{
|
||||||
plugin = nvim-ufo;
|
plugin = nvim-ufo;
|
||||||
|
@ -131,6 +130,19 @@ with builtins;
|
||||||
{ plugin = promise-async; }
|
{ plugin = promise-async; }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
plugin = neodev-nvim;
|
||||||
|
conf = /* lua */ ''
|
||||||
|
require("neodev").setup({
|
||||||
|
override = function(root_dir, library)
|
||||||
|
if root_dir:find("/home/moritz/.dotfiles/", 1, true) == 1 then
|
||||||
|
library.enabled = true
|
||||||
|
library.plugins = true
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -160,6 +160,7 @@ lspconfig_setup("lua_ls", {
|
||||||
runtime = {
|
runtime = {
|
||||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||||
version = "LuaJIT",
|
version = "LuaJIT",
|
||||||
|
path = vim.split(package.path, ";"),
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
-- Get the language server to recognize the `vim` global
|
-- Get the language server to recognize the `vim` global
|
||||||
|
|
Loading…
Reference in a new issue