feat: indent-blankline.nvim

This commit is contained in:
punkfairie 2024-11-30 13:03:29 -08:00
parent 45e08fb6ea
commit 56e2cdbc0c
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 43 additions and 0 deletions

View file

@ -44,6 +44,7 @@ with final.pkgs.lib; let
alpha-nvim alpha-nvim
bufferline-nvim bufferline-nvim
lualine-nvim lualine-nvim
indent-blankline-nvim
]; ];
extraPackages = with pkgs; [ extraPackages = with pkgs; [

View 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,
}

View file

@ -3,6 +3,7 @@ local req = require('lib.marleyvim').localRequire('plugins.ui')
return { return {
req('alpha-nvim'), req('alpha-nvim'),
req('bufferline-nvim'), req('bufferline-nvim'),
req('indent-blankline-nvim'),
req('lualine-nvim'), req('lualine-nvim'),
req('mini-icons'), req('mini-icons'),
} }