1
1
local lspconfig = require " lspconfig"
2
2
3
- lspconfig .rust_analyzer .setup {
4
- filetypes = { " rust" },
5
- cmd = { " rust-analyzer" },
6
- }
3
+ lspconfig .rust_analyzer .setup {}
7
4
8
5
lspconfig .lua_ls .setup {
9
6
filetypes = { " lua" },
@@ -26,21 +23,11 @@ lspconfig.lua_ls.setup {
26
23
},
27
24
}
28
25
29
- lspconfig .bashls .setup {
30
- single_file_support = true ,
31
- }
26
+ lspconfig .bashls .setup {}
32
27
33
- lspconfig .gopls .setup {
34
- cmd = { " gopls" },
35
- filetypes = { " go" , " gomod" , " gowork" , " gotmpl" },
36
- single_file_support = true ,
37
- }
28
+ lspconfig .gopls .setup {}
38
29
39
- lspconfig .pylsp .setup {
40
- cmd = { " pylsp" },
41
- filetypes = { " python" },
42
- single_file_support = true ,
43
- }
30
+ lspconfig .pylsp .setup {}
44
31
45
32
lspconfig .tsserver .setup {
46
33
cmd = { " typescript-language-server" , " --stdio" },
@@ -51,21 +38,8 @@ lspconfig.tsserver.setup {
51
38
single_file_support = true ,
52
39
}
53
40
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 {}
59
42
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 {}
66
44
67
- lspconfig .zls .setup {
68
- cmd = { " zls" },
69
- filetypes = { " zig" , " zir" },
70
- single_file_support = true ,
71
- }
45
+ lspconfig .zls .setup {}
0 commit comments