Fix cpp linting

This commit is contained in:
Alex Yatskov 2022-01-10 16:13:43 -08:00 committed by Alex Yatskov
parent 33bf4be7bd
commit 2e13880a16
2 changed files with 7 additions and 1 deletions

View File

@ -1,2 +1,8 @@
" vim-fswitch
noremap gfs :FSHere<Cr>
if has('nvim')
lua << EOF
vim.diagnostic.disable()
EOF
endif

View File

@ -46,7 +46,7 @@ lua << EOF
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local nvim_lsp = require('lspconfig')
for _, lsp in ipairs({'jedi_language_server', 'gopls', 'rust_analyzer', 'clangd', 'ccls', 'tsserver'}) do
for _, lsp in ipairs({'jedi_language_server', 'gopls', 'rust_analyzer', 'clangd', 'tsserver'}) do
nvim_lsp[lsp].setup({
on_attach = on_attach,
capabilities = capabilities