1
0

Set diagnostic for only the current line

This commit is contained in:
2025-03-31 21:22:47 +01:00
parent cb6104c896
commit 19549b35c9
3 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
require("config.lazy")
vim.opt.mouse = ''
vim.opt.number = true
vim.opt.relativenumber = true
@@ -70,9 +71,13 @@ vim.keymap.set("n", "<leader>y", "\"+y")
vim.keymap.set("v", "<leader>y", "\"+y")
vim.keymap.set("n", "<leader>Y", "\"+Y")
--
-- Diagnostics
vim.diagnostic.config({
virtual_text = false,
})
vim.diagnostic.config({ virtual_lines = true })
--
-- Disable built-in
vim.diagnostic.config({ virtual_text = false } )
-- Enable for the current line only
vim.diagnostic.config({ virtual_lines = { only_current_line = true } })

View File

@@ -6,8 +6,8 @@
"lsp_lines.nvim": { "branch": "main", "commit": "a92c755f182b89ea91bd8a6a2227208026f27b4d" },
"marks.nvim": { "branch": "master", "commit": "bb25ae3f65f504379e3d08c8a02560b76eaf91e8" },
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
"nvim-lspconfig": { "branch": "master", "commit": "0a1ac55d7d4ec2b2ed9616dfc5406791234d1d2b" },
"nvim-treesitter": { "branch": "master", "commit": "aece1062335a9e856636f5da12d8a06c7615ce8a" },
"nvim-lspconfig": { "branch": "master", "commit": "ff6471d4f837354d8257dfa326b031dd8858b16e" },
"nvim-treesitter": { "branch": "master", "commit": "9be6836ebeb88a536055bf1ce0961eef68da4bc6" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" }

BIN
starship

Binary file not shown.