pkgsets/nvim: update lsp config to use opts
This commit is contained in:
parent
d8f29e12b5
commit
378da9479f
17 changed files with 355 additions and 339 deletions
|
@ -5,22 +5,21 @@
|
|||
...
|
||||
}:
|
||||
|
||||
lib.optionalString (lib.elem "nvim::lsp::lua" config.machine.pkgs) # lua
|
||||
''
|
||||
lspconfig.lua_ls.setup({
|
||||
cmd = {"${pkgs.lua-language-server}/bin/lua-language-server"},
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = 'LuaJIT'
|
||||
},
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {
|
||||
vim.env.VIMRUNTIME
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
''
|
||||
lib.optionalAttrs (lib.elem "nvim::lsp::lua" config.machine.pkgs) {
|
||||
lua_ls = {
|
||||
cmd = [ "${pkgs.lua-language-server}/bin/lua-language-server" ];
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = "LuaJIT";
|
||||
};
|
||||
workspace = {
|
||||
checkThirdParty = false;
|
||||
library = [
|
||||
(_: "vim.env.VIMRUNTIME")
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue