27 lines
678 B
Lua
27 lines
678 B
Lua
-- Install and configure nvim-lspconfig
|
|
|
|
return {
|
|
"neovim/nvim-lspconfig",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
dependencies = {
|
|
-- Send LSP results to autocompletion nvim-cmp
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
-- 💫 Extensible UI for Neovim notifications and LSP progress messages
|
|
{ 'j-hui/fidget.nvim', tag = "legacy", opts = {} },
|
|
},
|
|
config = function()
|
|
|
|
vim.diagnostic.config({
|
|
signs = {
|
|
text = {
|
|
[vim.diagnostic.severity.ERROR] = " ",
|
|
[vim.diagnostic.severity.WARN] = " ",
|
|
[vim.diagnostic.severity.HINT] = " ",
|
|
[vim.diagnostic.severity.INFO] = " ",
|
|
}
|
|
}
|
|
})
|
|
|
|
end,
|
|
}
|