diff options
author | Minijackson <minijackson@riseup.net> | 2021-06-16 16:29:56 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-06-16 16:31:51 +0200 |
commit | 28edc231da9976f2127c9624c468b8a52abfc334 (patch) | |
tree | f5870f21400127a17c01c698fb465ca087a22768 /dotfiles/vim-dev.lua | |
parent | 527a4d67f5957c1cc5a8e501a577819fcc52d919 (diff) | |
download | nixos-config-reborn-28edc231da9976f2127c9624c468b8a52abfc334.tar.gz nixos-config-reborn-28edc231da9976f2127c9624c468b8a52abfc334.zip |
vim-dev: better LSP configuration
Diffstat (limited to 'dotfiles/vim-dev.lua')
-rw-r--r-- | dotfiles/vim-dev.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/dotfiles/vim-dev.lua b/dotfiles/vim-dev.lua index 0422b2f..5c971e3 100644 --- a/dotfiles/vim-dev.lua +++ b/dotfiles/vim-dev.lua | |||
@@ -46,22 +46,6 @@ capabilities.textDocument.completion.completionItem.resolveSupport = { | |||
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | function setup_lsp_with(servers) | ||
50 | for _, server in ipairs(servers) do | ||
51 | lspconfig[server].setup { | ||
52 | capabilities = capabilities, | ||
53 | cmd = vim.g[server .. "_cmd"], | ||
54 | on_attach = on_attach, | ||
55 | } | ||
56 | end | ||
57 | end | ||
58 | |||
59 | setup_lsp_with { | ||
60 | "clangd", | ||
61 | "elixirls", | ||
62 | "pyls", | ||
63 | } | ||
64 | |||
65 | require("rust-tools").setup { | 49 | require("rust-tools").setup { |
66 | server = { | 50 | server = { |
67 | cmd = { vim.g.rust_analyzer_path }, | 51 | cmd = { vim.g.rust_analyzer_path }, |