nvim: lsp: update comments
This commit is contained in:
parent
f00f50658c
commit
a359c300c0
|
@ -12,8 +12,7 @@ packer.use {
|
||||||
map('n', '<f5>', vim.diagnostic.goto_prev)
|
map('n', '<f5>', vim.diagnostic.goto_prev)
|
||||||
map('n', '<f6>', vim.diagnostic.goto_next)
|
map('n', '<f6>', vim.diagnostic.goto_next)
|
||||||
|
|
||||||
-- Only map the following keys after the language server attaches to the
|
-- only do this after the language server attaches to the current buffer
|
||||||
-- current buffer
|
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
local function maplsp(mode, shortcut, command)
|
local function maplsp(mode, shortcut, command)
|
||||||
vim.keymap.set(mode, shortcut, command,
|
vim.keymap.set(mode, shortcut, command,
|
||||||
|
@ -62,10 +61,11 @@ packer.use {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- setup servers
|
-- update client capabilities with completion plugin stuff
|
||||||
local capabilities = require('cmp_nvim_lsp').update_capabilities(
|
local capabilities = require('cmp_nvim_lsp').update_capabilities(
|
||||||
vim.lsp.protocol.make_client_capabilities())
|
vim.lsp.protocol.make_client_capabilities())
|
||||||
|
|
||||||
|
-- setup servers
|
||||||
if (vim.fn.executable('clangd') > 0) then
|
if (vim.fn.executable('clangd') > 0) then
|
||||||
require'lspconfig'.clangd.setup{
|
require'lspconfig'.clangd.setup{
|
||||||
cmd = {
|
cmd = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user