2023-08-10 13:32:47 +02:00
|
|
|
return {
|
2022-12-31 17:43:31 +01:00
|
|
|
'neovim/nvim-lspconfig',
|
|
|
|
name = 'lsp',
|
2023-08-10 13:32:47 +02:00
|
|
|
config = function()
|
|
|
|
require('mason')
|
|
|
|
require('mason-lspconfig')
|
|
|
|
vim.diagnostic.config(require('config.utils').lsp_config)
|
|
|
|
-- vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, {
|
|
|
|
-- border = 'rounded',
|
|
|
|
-- })
|
|
|
|
-- vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
|
|
|
-- border = 'rounded',
|
|
|
|
-- })
|
|
|
|
local on_references = vim.lsp.handlers['textDocument/references']
|
|
|
|
vim.lsp.handlers['textDocument/references'] = vim.lsp.with(on_references, {
|
|
|
|
-- Use location list instead of quickfix list
|
|
|
|
loclist = true,
|
|
|
|
})
|
2023-04-15 15:47:38 +02:00
|
|
|
end
|
2023-08-10 13:32:47 +02:00
|
|
|
}
|