1
0
Fork 0

nvim: lsp: update comments

This commit is contained in:
tastytea 2022-08-11 15:17:36 +02:00
parent f00f50658c
commit a359c300c0
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,7 @@ packer.use {
map('n', '<f5>', vim.diagnostic.goto_prev)
map('n', '<f6>', 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 = {