feat(nvim): improve zen mode

This commit is contained in:
Moritz Böhme 2023-09-07 09:09:12 +02:00
parent 8f0a066e33
commit d4be10ddda

View file

@ -316,8 +316,32 @@ with builtins;
keys = [ keys = [
{ key = "<leader>tz"; cmd = "<cmd>ZenMode<cr>"; desc = "Zen mode"; } { key = "<leader>tz"; cmd = "<cmd>ZenMode<cr>"; desc = "Zen mode"; }
]; ];
conf = /* lua */ ''
require("zen-mode").setup({
plugins = {
tmux = {
enabled = true,
},
},
})
'';
dependencies = [ dependencies = [
{ plugin = twilight-nvim; } {
plugin = twilight-nvim;
conf = /* lua */ ''
require("twilight").setup({
context = 20,
expand = { -- for treesitter, we we always try to expand to the top-most ancestor with these types
"function",
"function_definition",
"if_statement",
"method",
"method_definition",
"table",
},
})
'';
}
]; ];
} }
]; ];