diff options
author | Akshay <[email protected]> | 2021-09-19 10:57:34 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-09-19 10:57:34 +0100 |
commit | 456232000cc2a5f20b5eb87f268ffea2e3667ac6 (patch) | |
tree | 6d183309a3e5f51e74fd963d9e1881c5f12b6bc8 /lua | |
parent | c45237c7394152dc63200f7eb71e816b30600d82 (diff) |
cool new search mapping
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lsp.lua | 9 |
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 |
29 | end | 29 | end |
30 | 30 | ||
31 | local servers = { "hls", "rnix", "bashls", "pyls" } | 31 | local servers = { "hls", "rnix", "bashls" } |
32 | for _, lsp in ipairs(servers) do | 32 | for _, 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 | } | ||
34 | end | 36 | end |
35 | 37 | ||
36 | local capabilities = vim.lsp.protocol.make_client_capabilities() | 38 | local 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 | } |