This commit is contained in:
Till 2026-02-12 15:28:48 +01:00
parent 40539ae163
commit 9fdeb99a61
11 changed files with 122 additions and 251 deletions

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
@ -73,7 +73,7 @@
nnoremap <silent> [og :Goyo 80<return>
nnoremap <silent> ]og :Goyo!<return>
'';
}
}
{
plugin = limelight-vim;
config = ''
@ -115,7 +115,23 @@
'';
}
(nvim-treesitter.withPlugins (p: [ p.nix p.lua p.r p.typescript ]))
{
plugin = (nvim-treesitter.withPlugins (p: [ p.nix p.lua p.r p.typescript ]));
type = "lua";
config = ''
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'nix', 'markdown', 'lua', 'r' },
callback = function()
-- Enable Tree-sitter-based folding
vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
vim.o.foldmethod = 'expr'
-- Optional: configure fold behavior
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
end,
})
'';
}
{
plugin = papercolor-theme;
@ -154,7 +170,10 @@
'';
}
vim-fish
{
plugin = vim-fish;
}
vim-nix
{