feat: indent-blankline.nvim
This commit is contained in:
parent
45e08fb6ea
commit
56e2cdbc0c
3 changed files with 43 additions and 0 deletions
|
@ -44,6 +44,7 @@ with final.pkgs.lib; let
|
|||
alpha-nvim
|
||||
bufferline-nvim
|
||||
lualine-nvim
|
||||
indent-blankline-nvim
|
||||
];
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
|
|
41
nvim/lua/plugins/ui/indent-blankline-nvim.lua
Normal file
41
nvim/lua/plugins/ui/indent-blankline-nvim.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
return {
|
||||
'indent-blankline.nvim',
|
||||
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
|
||||
after = function()
|
||||
require('ibl').setup({
|
||||
indent = {
|
||||
char = '│',
|
||||
tab_char = '│',
|
||||
},
|
||||
scope = { show_start = false, show_end = false },
|
||||
exclude = {
|
||||
filetypes = {
|
||||
'Trouble',
|
||||
'alpha',
|
||||
'dashboard',
|
||||
'help',
|
||||
'lazy',
|
||||
'mason',
|
||||
'neo-tree',
|
||||
'notify',
|
||||
'snacks_dashboard',
|
||||
'snacks_notif',
|
||||
'snacks_terminal',
|
||||
'snacks_win',
|
||||
'toggleterm',
|
||||
'trouble',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Snacks.toggle({
|
||||
name = 'Indent guides',
|
||||
get = function()
|
||||
return require('ibl.config').get_config(0).enabled
|
||||
end,
|
||||
set = function(state)
|
||||
require('ibl').setup_buffer(0, { enabled = state })
|
||||
end,
|
||||
}):map('<LEADER>ug')
|
||||
end,
|
||||
}
|
|
@ -3,6 +3,7 @@ local req = require('lib.marleyvim').localRequire('plugins.ui')
|
|||
return {
|
||||
req('alpha-nvim'),
|
||||
req('bufferline-nvim'),
|
||||
req('indent-blankline-nvim'),
|
||||
req('lualine-nvim'),
|
||||
req('mini-icons'),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue