feat(nvim): add back zen-mode
This commit is contained in:
parent
a4cb8f2dfd
commit
56505a065f
1 changed files with 36 additions and 0 deletions
|
@ -42,5 +42,41 @@ with builtins;
|
||||||
{ plugin = nvim-treesitter; }
|
{ plugin = nvim-treesitter; }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
plugin = pkgs.vimPlugins.zen-mode-nvim;
|
||||||
|
keys = [
|
||||||
|
{ key = "<leader>tz"; cmd = "<cmd>ZenMode<cr>"; desc = "Zen mode"; }
|
||||||
|
];
|
||||||
|
conf = /* lua */ ''
|
||||||
|
require("zen-mode").setup({
|
||||||
|
plugins = {
|
||||||
|
tmux = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
dependencies = [
|
||||||
|
{
|
||||||
|
plugin = pkgs.vimPlugins.twilight-nvim;
|
||||||
|
keys = [
|
||||||
|
{ key = "<leader>tZ"; cmd = "<cmd>Twilight<cr>"; desc = "Twilight mode"; }
|
||||||
|
];
|
||||||
|
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",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue