nvim: Improve indentscope disables
Improved conditional disabling of indentscope lines, e.g. in lazy and mason floats, terminals and helpfiles.
This commit is contained in:
parent
50d78cbb2f
commit
7d616c1cb5
1 changed files with 26 additions and 0 deletions
|
|
@ -203,6 +203,32 @@ return {
|
||||||
draw = { animation = require("mini.indentscope").gen_animation.none() },
|
draw = { animation = require("mini.indentscope").gen_animation.none() },
|
||||||
options = { indent_at_cursor = false },
|
options = { indent_at_cursor = false },
|
||||||
})
|
})
|
||||||
|
-- disable indentlines for terminals
|
||||||
|
vim.api.nvim_create_autocmd("TermOpen", {
|
||||||
|
pattern = "*",
|
||||||
|
callback = function()
|
||||||
|
vim.b.miniindentscope_disable = true
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = {
|
||||||
|
"lazy",
|
||||||
|
"mason",
|
||||||
|
"help",
|
||||||
|
"lspinfo",
|
||||||
|
"packer",
|
||||||
|
"checkhealth",
|
||||||
|
"man",
|
||||||
|
"gitcommit",
|
||||||
|
"TelescopePrompt",
|
||||||
|
"TelescopeResults",
|
||||||
|
"trouble",
|
||||||
|
},
|
||||||
|
callback = function()
|
||||||
|
vim.b.miniindentscope_disable = true
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
require("mini.map").setup()
|
require("mini.map").setup()
|
||||||
require("mini.move").setup()
|
require("mini.move").setup()
|
||||||
require("mini.operators").setup()
|
require("mini.operators").setup()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue