feat: Diagnostics

This commit is contained in:
2026-08-18 23:29:09 +01:00
parent 6bc5875bad
commit a069901d84
4 changed files with 34 additions and 6 deletions
+22
View File
@@ -15,3 +15,25 @@ vim.opt.shiftwidth = 0
vim.o.scrolloff = 20
vim.opt.signcolumn = 'yes'
vim.diagnostic.enable = true
vim.diagnostic.config({
virtual_lines = false,
})
vim.o.updatetime = 300
vim.api.nvim_create_autocmd("CursorHold", {
callback = function()
local diagnostics = vim.diagnostic.get(0, {
lnum = vim.fn.line(".") - 1,
})
if #diagnostics > 0 then
vim.diagnostic.open_float(nil, {
focus = false,
scope = "line",
})
end
end,
})
@@ -8,11 +8,10 @@ return {
require("blink.cmp").build():pwait()
end,
opts = {
keymap = { preset = "default" },
keymap = {
preset = "default",
["<Tab>"] = { "accept", "fallback" },
},
}
},
{
"mrcjkb/rustaceanvim",
ft = { "rust" },
}
}
+6
View File
@@ -0,0 +1,6 @@
return {
{
"mrcjkb/rustaceanvim",
ft = { "rust" },
}
}