mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-10 01:14:30 +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,
|
||||
}
|
51
lua/custom/plugins/minimap.lua
Normal file
51
lua/custom/plugins/minimap.lua
Normal file
|
@ -0,0 +1,51 @@
|
|||
return {
|
||||
-- "echasnovski/mini.map",
|
||||
-- branch = "stable",
|
||||
-- event = "BufRead",
|
||||
-- config = function()
|
||||
-- require("mini.map").setup()
|
||||
-- local map = require("mini.map")
|
||||
-- map.setup({
|
||||
-- integrations = {
|
||||
-- map.gen_integration.builtin_search(),
|
||||
-- map.gen_integration.diagnostic({
|
||||
-- error = "DiagnosticFloatingError",
|
||||
-- warn = "DiagnosticFloatingWarn",
|
||||
-- info = "DiagnosticFloatingInfo",
|
||||
-- hint = "DiagnosticFloatingHint",
|
||||
-- }),
|
||||
-- },
|
||||
-- symbols = {
|
||||
-- encode = map.gen_encode_symbols.dot("4x2"),
|
||||
-- },
|
||||
-- window = {
|
||||
-- side = "right",
|
||||
-- width = 10, -- set to 1 for a pure scrollbar :)
|
||||
-- winblend = 15,
|
||||
-- show_integration_count = false,
|
||||
-- },
|
||||
-- })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "*",
|
||||
-- callback = function()
|
||||
-- local exclude_ft = {
|
||||
-- "qf",
|
||||
-- "NvimTree",
|
||||
-- "toggleterm",
|
||||
-- "TelescopePrompt",
|
||||
-- "alpha",
|
||||
-- "netrw",
|
||||
-- }
|
||||
--
|
||||
-- local map = require("mini.map")
|
||||
-- if vim.tbl_contains(exclude_ft, vim.o.filetype) then
|
||||
-- vim.b.minimap_disable = true
|
||||
-- map.close()
|
||||
-- elseif vim.o.buftype == "" then
|
||||
-- map.open()
|
||||
-- end
|
||||
-- end,
|
||||
-- })
|
||||
-- end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue