mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 09:48:51 +02:00
update error lens
This commit is contained in:
parent
2325a91e12
commit
35f8874104
5 changed files with 81 additions and 3 deletions
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