From a359c300c09ac9fb100c084b3daaf254da3bb82d Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 11 Aug 2022 15:17:36 +0200 Subject: [PATCH] nvim: lsp: update comments --- .config/nvim/lua/lsp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index 2f5b715..3720d36 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -12,8 +12,7 @@ packer.use { map('n', '', vim.diagnostic.goto_prev) map('n', '', vim.diagnostic.goto_next) - -- Only map the following keys after the language server attaches to the - -- current buffer + -- only do this after the language server attaches to the current buffer local on_attach = function(client, bufnr) local function maplsp(mode, shortcut, command) vim.keymap.set(mode, shortcut, command, @@ -62,10 +61,11 @@ packer.use { end end - -- setup servers + -- update client capabilities with completion plugin stuff local capabilities = require('cmp_nvim_lsp').update_capabilities( vim.lsp.protocol.make_client_capabilities()) + -- setup servers if (vim.fn.executable('clangd') > 0) then require'lspconfig'.clangd.setup{ cmd = {