This commit is contained in:
Miguel Palhas
2025-03-31 12:12:09 +01:00
parent a6bbc0f3df
commit d4d778a3ee
2 changed files with 14 additions and 14 deletions
+9 -9
View File
@@ -3,10 +3,10 @@ local M = {}
local nvlsp = require "nvchad.configs.lspconfig"
local map = vim.keymap.set
vim.diagnostic.config {
virtual_text = false,
virtual_lines = { current_line = true },
}
-- vim.diagnostic.config {
-- virtual_text = false,
-- virtual_lines = { current_line = true },
-- }
M.defaults = function()
-- load defaults i.e lua_lsp
@@ -30,6 +30,11 @@ M.defaults = function()
inlay_hints = { enable = true },
}
end
vim.diagnostic.config {
virtual_text = false,
virtual_lines = { current_line = true },
}
end
M.on_attach = function(client, bufnr)
@@ -87,11 +92,6 @@ M.rustacean = {
-- end, opts "Rust Code Actions")
end,
},
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = false,
}),
},
tools = {
float_win_config = {
border = "rounded",