aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksav013@gmail.com>2022-08-03 21:31:38 +0200
committerAleksa Vuckovic <aleksav013@gmail.com>2022-08-17 01:29:28 +0200
commit6a51ce3229d1b068340e820acc5829ee46e6ebd6 (patch)
treedc8102c13b0cc97eb2f013d6bfa248957799ac42
parent90493748e58fcc1dd56000628e01079c64b6d44e (diff)
linux modules & mykernel64 LSP autocompletion
-rw-r--r--lua/user/lsp/ccls.lua22
1 files changed, 19 insertions, 3 deletions
diff --git a/lua/user/lsp/ccls.lua b/lua/user/lsp/ccls.lua
index 8b048e3..0082c39 100644
--- a/lua/user/lsp/ccls.lua
+++ b/lua/user/lsp/ccls.lua
@@ -7,13 +7,29 @@ end
vim.notify(vim.fn.expand('%:p'));
local extraArgs_opt = {};
-if string.match(vim.fn.expand('%:p'),"/home/aleksa/mygit/mykernel/") then
+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", };
+--[[
vim.opt["shiftwidth"]=4;
vim.opt["tabstop"]=4;
vim.opt["expandtab"]=true;
- vim.notify("aleksav013/mykernel");
-else
+]]
+ vim.notify("mykernel");
+end
+
+if string.match(vim.fn.expand('%:p'),"/media/files/git/") then
+ extraArgs_opt = { "--sysroot=/media/files/git/staging", };
+ vim.notify("linux");
+end
+
+if string.match(vim.fn.expand('%:p'),"/home/aleksa/files/arduino_avr") then
+ extraArgs_opt = { "--sysroot=/usr/avr", };
+ vim.notify("arduino-avr");
+end
+
+if string.match(vim.fn.expand('%:p'),"/home/aleksa/mygit/mykernel64") then
+ extraArgs_opt = { "--sysroot=/home/aleksa/mygit/mykernel64/kernel", };
+ vim.notify("mykernel64");
end