Skip to content

Commit 632fd5d

Browse files
committed
chore(servers): do not store default lspconfig values
1 parent 8a4d681 commit 632fd5d

File tree

1 file changed

+7
-33
lines changed

1 file changed

+7
-33
lines changed

lua/plugins/servers.lua

+7-33
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
local lspconfig = require "lspconfig"
22

3-
lspconfig.rust_analyzer.setup {
4-
filetypes = { "rust" },
5-
cmd = { "rust-analyzer" },
6-
}
3+
lspconfig.rust_analyzer.setup {}
74

85
lspconfig.lua_ls.setup {
96
filetypes = { "lua" },
@@ -26,21 +23,11 @@ lspconfig.lua_ls.setup {
2623
},
2724
}
2825

29-
lspconfig.bashls.setup {
30-
single_file_support = true,
31-
}
26+
lspconfig.bashls.setup {}
3227

33-
lspconfig.gopls.setup {
34-
cmd = { "gopls" },
35-
filetypes = { "go", "gomod", "gowork", "gotmpl" },
36-
single_file_support = true,
37-
}
28+
lspconfig.gopls.setup {}
3829

39-
lspconfig.pylsp.setup {
40-
cmd = { "pylsp" },
41-
filetypes = { "python" },
42-
single_file_support = true,
43-
}
30+
lspconfig.pylsp.setup {}
4431

4532
lspconfig.tsserver.setup {
4633
cmd = { "typescript-language-server", "--stdio" },
@@ -51,21 +38,8 @@ lspconfig.tsserver.setup {
5138
single_file_support = true,
5239
}
5340

54-
lspconfig.gleam.setup {
55-
cmd = { "gleam", "lsp" },
56-
filetypes = { "gleam" },
57-
root_dir = lspconfig.util.root_pattern("gleam.toml", ".git"),
58-
}
41+
lspconfig.gleam.setup {}
5942

60-
lspconfig.nil_ls.setup {
61-
cmd = { "nil" },
62-
filetypes = { "nix" },
63-
root_pattern = { "flake.nix", ".git" },
64-
single_file_support = true,
65-
}
43+
lspconfig.nil_ls.setup {}
6644

67-
lspconfig.zls.setup {
68-
cmd = { "zls" },
69-
filetypes = { "zig", "zir" },
70-
single_file_support = true,
71-
}
45+
lspconfig.zls.setup {}

0 commit comments

Comments
 (0)