aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-16 18:33:25 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-16 18:33:25 +0300
commit3018208575cb710d826886f74a88e19f6ac77e32 (patch)
tree8e817039b9385cf916acf352ef0e35341f471a51 /nvim
parentffb2c05dc51bba581021ca96f4abf5fb00970a34 (diff)
downloaddotfiles-3018208575cb710d826886f74a88e19f6ac77e32.tar.gz
feat(nvim): add C language server
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/lua/lsp-config.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/lsp-config.lua b/nvim/.config/nvim/lua/lsp-config.lua
index a7c28c5..a2d6ccb 100644
--- a/nvim/.config/nvim/lua/lsp-config.lua
+++ b/nvim/.config/nvim/lua/lsp-config.lua
@@ -18,7 +18,6 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
- buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
buf_set_keymap('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
end
@@ -58,6 +57,12 @@ nvim_lsp.pylsp.setup{
capabilities = capabilities,
}
+nvim_lsp.ccls.setup {
+ on_attach = on_attach,
+ flags = flags,
+ capabilities = capabilities,
+}
+
-- Lua
local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, "lua/?.lua")