mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-02-22 22:28:00 +00:00
49 lines
1.1 KiB
Lua
49 lines
1.1 KiB
Lua
require("plugins.lsp.mason")
|
|
require("plugins.lsp.none-ls")
|
|
require("plugins.lsp.conform")
|
|
require("plugins.lsp.lsp-saga")
|
|
|
|
local win = require("lspconfig.ui.windows")
|
|
win.default_options.border = "rounded"
|
|
|
|
local signs = {
|
|
{ name = "DiagnosticSignError", text = "" },
|
|
{ name = "DiagnosticSignWarn", text = "" },
|
|
{ name = "DiagnosticSignHint", text = "" },
|
|
{ name = "DiagnosticSignInfo", text = "" },
|
|
}
|
|
|
|
for _, sign in ipairs(signs) do
|
|
vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
|
|
end
|
|
|
|
local config = {
|
|
virtual_text = false,
|
|
signs = {
|
|
active = signs,
|
|
},
|
|
update_in_insert = true,
|
|
underline = true,
|
|
severity_sort = true,
|
|
float = {
|
|
focusable = true,
|
|
style = "minimal",
|
|
border = "rounded",
|
|
source = "always",
|
|
header = "",
|
|
prefix = "",
|
|
},
|
|
}
|
|
|
|
vim.diagnostic.config(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",
|
|
})
|
|
|
|
vim.diagnostic.config(config)
|