add(nvim): lua ls
This commit is contained in:
parent
9d080e0e18
commit
833211847c
@ -115,6 +115,14 @@ nvim_lsp.svelte.setup {
|
|||||||
cmd = {nix_vars.sveltels, "--stdio"}
|
cmd = {nix_vars.sveltels, "--stdio"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Lua LSP Configuration
|
||||||
|
nvim_lsp.lua_ls.setup {
|
||||||
|
on_attach = on_attach_no_formatting,
|
||||||
|
flags = lsp_flags,
|
||||||
|
capabilities = capabilities,
|
||||||
|
cmd = {nix_vars.luals}
|
||||||
|
}
|
||||||
|
|
||||||
-- Go LSP Configuration
|
-- Go LSP Configuration
|
||||||
nvim_lsp.gopls.setup {
|
nvim_lsp.gopls.setup {
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
@ -160,8 +168,9 @@ has_eslint_in_parents = function(fname)
|
|||||||
root_file = nvim_lsp.util.insert_package_json(eslintFiles, 'eslintConfig',
|
root_file = nvim_lsp.util.insert_package_json(eslintFiles, 'eslintConfig',
|
||||||
fname)
|
fname)
|
||||||
return nvim_lsp.util.root_pattern(unpack(root_file))(fname)
|
return nvim_lsp.util.root_pattern(unpack(root_file))(fname)
|
||||||
|
end
|
||||||
|
|
||||||
end, null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
-- Prettier Formatting
|
-- Prettier Formatting
|
||||||
null_ls.builtins.formatting.prettier.with({
|
null_ls.builtins.formatting.prettier.with({
|
||||||
|
@ -112,6 +112,7 @@ in
|
|||||||
golangci-lint
|
golangci-lint
|
||||||
golangci-lint-langserver
|
golangci-lint-langserver
|
||||||
gopls
|
gopls
|
||||||
|
lua-language-server
|
||||||
nodePackages.eslint
|
nodePackages.eslint
|
||||||
nodePackages.eslint_d
|
nodePackages.eslint_d
|
||||||
nodePackages.pyright
|
nodePackages.pyright
|
||||||
@ -146,6 +147,7 @@ in
|
|||||||
"nvim/lua/nix-vars.lua".text = ''
|
"nvim/lua/nix-vars.lua".text = ''
|
||||||
local nix_vars = {
|
local nix_vars = {
|
||||||
gopls = "${pkgs.gopls}/bin/gopls",
|
gopls = "${pkgs.gopls}/bin/gopls",
|
||||||
|
luals = "${pkgs.lua-language-server}/bin/lua-language-server",
|
||||||
sveltels = "${pkgs.nodePackages.svelte-language-server}/bin/svelteserver",
|
sveltels = "${pkgs.nodePackages.svelte-language-server}/bin/svelteserver",
|
||||||
tsls = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server",
|
tsls = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server",
|
||||||
golintls = "${pkgs.golangci-lint-langserver}/bin/golangci-lint-langserver",
|
golintls = "${pkgs.golangci-lint-langserver}/bin/golangci-lint-langserver",
|
||||||
|
Loading…
Reference in New Issue
Block a user