mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
update error lens
This commit is contained in:
parent
2325a91e12
commit
35f8874104
5 changed files with 81 additions and 3 deletions
20
lua/custom/plugins/lsp-line.lua
Normal file
20
lua/custom/plugins/lsp-line.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
"ErichDonGubler/lsp_lines.nvim",
|
||||
event = "VimEnter",
|
||||
config = function()
|
||||
require("lsp_lines").setup()
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "*" }, --ini untuk file yang tidak ingin dibaca
|
||||
callback = function()
|
||||
local exclude_ft = {
|
||||
"lazy",
|
||||
}
|
||||
if vim.tbl_contains(exclude_ft, vim.o.filetype) then
|
||||
vim.diagnostic.config({ virtual_lines = false })
|
||||
else
|
||||
vim.diagnostic.config({ virtual_lines = true })
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue