1
0
mirror of https://gitlab.com/baco/dotconf.git synced 2024-06-19 06:17:03 +00:00

Minor refactor of lsp configuration files

Separated, again, the lspkind configuration in it's own block.  It was
originally like this but reordering of the settings was needed to
accommodate the new nvim-cmp plugin configurations.
This commit is contained in:
Dionisio E Alonso 2021-11-02 10:32:33 -03:00
parent b05bce351e
commit ff3cef8e25

View File

@ -35,14 +35,17 @@ lsp_mappings = function()
end
EOF
" lspkind-nvim
lua << EOF
local nvim_lsp = require('lspconfig')
-- lspkind-nvim
cmp_format = require('lspkind').cmp_format{
with_text = false,
preset = 'codicons',
menu = {nvim_lsp = "[LSP]", buffer = "[Buffer]", path = "[Path]"}
}
EOF
lua << EOF
local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
vim.api.nvim_command('autocmd CursorHoldI <buffer> lua vim.lsp.diagnostic.show_line_diagnostics({show_header = false})')