From 3018208575cb710d826886f74a88e19f6ac77e32 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 16 Apr 2022 18:33:25 +0300 Subject: feat(nvim): add C language server --- nvim/.config/nvim/lua/lsp-config.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nvim') 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', 'lua vim.lsp.buf.implementation()', opts) buf_set_keymap('n', 'gr', 'lua vim.lsp.buf.references()', opts) buf_set_keymap('n', 'K', 'lua vim.lsp.buf.hover()', opts) - buf_set_keymap('n', '', 'lua vim.lsp.buf.signature_help()', opts) buf_set_keymap('n', 'rn', 'lua vim.lsp.buf.rename()', opts) buf_set_keymap('n', 'ca', 'lua vim.lsp.buf.code_action()', 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") -- cgit v1.2.3