diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-29 13:48:23 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-29 13:48:23 +0100 |
| commit | c5da25cb6c8d10315b441e69829e179753dd5c5c (patch) | |
| tree | 452fc6b2f10245f71b1cd36bbf0c54ab477f3f75 /lua/user/lsp | |
| parent | 17d41ad8222f83fa0537cb70fbc823675b1389e2 (diff) | |
adding colorscheme & changing indentation
Diffstat (limited to 'lua/user/lsp')
| -rw-r--r-- | lua/user/lsp/ccls.lua | 4 | ||||
| -rw-r--r-- | lua/user/lsp/handlers.lua | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lua/user/lsp/ccls.lua b/lua/user/lsp/ccls.lua index 9127e5b..8b048e3 100644 --- a/lua/user/lsp/ccls.lua +++ b/lua/user/lsp/ccls.lua @@ -9,6 +9,10 @@ local extraArgs_opt = {}; if string.match(vim.fn.expand('%:p'),"/home/aleksa/mygit/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 end diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index 6a55097..5f3e493 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -67,8 +67,8 @@ local function lsp_keymaps(bufnr) vim.api.nvim_buf_set_keymap(bufnr, "n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts) - -- vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts) - vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts) + vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.rename()<CR>", opts) + -- vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts) -- vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts) -- vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>f", "<cmd>lua vim.diagnostic.open_float()<CR>", opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "[d", '<cmd>lua vim.diagnostic.goto_prev({ border = "rounded" })<CR>', opts) |
