aboutsummaryrefslogtreecommitdiff
path: root/lua/user/lsp
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-03 01:57:29 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-03 01:57:29 +0100
commit506fa11fc88dbacf80d1ba93d88e65244966050c (patch)
tree8222ea1a43a6b0918f6ae7849ff7f86675227172 /lua/user/lsp
parent9ed0950e5fd53a48430f7fdc069a71d6fdeab145 (diff)
nvim-tree & lsp fixes
Diffstat (limited to 'lua/user/lsp')
-rw-r--r--lua/user/lsp/ccls.lua11
-rw-r--r--lua/user/lsp/handlers.lua2
2 files changed, 10 insertions, 3 deletions
diff --git a/lua/user/lsp/ccls.lua b/lua/user/lsp/ccls.lua
index 0082c39..f8817dc 100644
--- a/lua/user/lsp/ccls.lua
+++ b/lua/user/lsp/ccls.lua
@@ -7,6 +7,13 @@ end
vim.notify(vim.fn.expand('%:p'));
local extraArgs_opt = {};
+if string.match(vim.fn.expand('%:p'),"/home/aleksa/mygit/benet.rs/") then
+ vim.opt["shiftwidth"]=2;
+ vim.opt["tabstop"]=2;
+ vim.opt["expandtab"]=true;
+ vim.notify("jsx");
+end
+
if string.match(vim.fn.expand('%:p'),"/home/aleksa/mygit/oldrepos/mykernel/") then
extraArgs_opt = { "--sysroot=/opt/aleksa", "--gcc-toolchain=/opt/aleksa/usr/bin/i686-aleksa-gcc", };
--[[
@@ -17,8 +24,8 @@ if string.match(vim.fn.expand('%:p'),"/home/aleksa/mygit/oldrepos/mykernel/") th
vim.notify("mykernel");
end
-if string.match(vim.fn.expand('%:p'),"/media/files/git/") then
- extraArgs_opt = { "--sysroot=/media/files/git/staging", };
+if string.match(vim.fn.expand('%:p'),"/media/linux/") then
+ extraArgs_opt = { "--sysroot=/media/linux/staging/", };
vim.notify("linux");
end
diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua
index 5bc3074..085f449 100644
--- a/lua/user/lsp/handlers.lua
+++ b/lua/user/lsp/handlers.lua
@@ -99,6 +99,6 @@ if not status_ok then
return
end
-M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities)
+M.capabilities = cmp_nvim_lsp.default_capabilities(capabilities)
return M