summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-09-19 10:57:34 +0100
committerAkshay <[email protected]>2021-09-19 10:57:34 +0100
commit456232000cc2a5f20b5eb87f268ffea2e3667ac6 (patch)
tree6d183309a3e5f51e74fd963d9e1881c5f12b6bc8 /lua
parentc45237c7394152dc63200f7eb71e816b30600d82 (diff)
cool new search mapping
Diffstat (limited to 'lua')
-rw-r--r--lua/lsp.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/lua/lsp.lua b/lua/lsp.lua
index 2070c6a..b21ea70 100644
--- a/lua/lsp.lua
+++ b/lua/lsp.lua
@@ -28,9 +28,11 @@ local on_attach = function(client, bufnr)
28 end 28 end
29end 29end
30 30
31local servers = { "hls", "rnix", "bashls", "pyls" } 31local servers = { "hls", "rnix", "bashls" }
32for _, lsp in ipairs(servers) do 32for _, lsp in ipairs(servers) do
33 nvim_lsp[lsp].setup { on_attach = on_attach } 33 nvim_lsp[lsp].setup {
34 on_attach = on_attach,
35 }
34end 36end
35 37
36local capabilities = vim.lsp.protocol.make_client_capabilities() 38local capabilities = vim.lsp.protocol.make_client_capabilities()
@@ -43,6 +45,9 @@ nvim_lsp.rust_analyzer.setup {
43 procMacro = { 45 procMacro = {
44 enable = true 46 enable = true
45 }, 47 },
48 cargo = {
49 allFeatures = true,
50 },
46 }, 51 },
47 }, 52 },
48} 53}