feat(nvim): improve zen mode

dev-docs
Moritz Böhme 2023-09-07 09:09:12 +02:00
parent 8f0a066e33
commit d4be10ddda
1 changed files with 25 additions and 1 deletions

View File

@ -316,8 +316,32 @@ with builtins;
keys = [
{ key = "<leader>tz"; cmd = "<cmd>ZenMode<cr>"; desc = "Zen mode"; }
];
conf = /* lua */ ''
require("zen-mode").setup({
plugins = {
tmux = {
enabled = true,
},
},
})
'';
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",
},
})
'';
}
];
}
];