Add taskwarrior, hopefully fix vim config
diff --git a/src/apps/personal/nodejs.nix b/src/apps/personal/nodejs.nix
index a2a9fae..61ca861 100644
--- a/src/apps/personal/nodejs.nix
+++ b/src/apps/personal/nodejs.nix
@@ -5,5 +5,6 @@
node
node2nix
(yarn.override { nodejs = node; })
+ bun
];
}
diff --git a/src/apps/personal/tasks.nix b/src/apps/personal/tasks.nix
new file mode 100644
index 0000000..4a3b186
--- /dev/null
+++ b/src/apps/personal/tasks.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }: {
+ home.packages = [
+ pkgs.taskwarrior
+ pkgs.taskwarrior-tui
+ pkgs.ptask
+ ];
+}
diff --git a/src/apps/personal/vim.nix b/src/apps/personal/vim.nix
index 07a75af..ac5b66f 100644
--- a/src/apps/personal/vim.nix
+++ b/src/apps/personal/vim.nix
@@ -144,7 +144,16 @@
set viewoptions-=options
autocmd BufWinLeave ?* mkview!
autocmd BufWinEnter ?* normal zR
- autocmd BufWinEnter ?* silent! loadview
+
+ function! s:loadViewOrUnfold()
+ try
+ loadview
+ catch
+ folddoclosed foldopen
+ endtry
+ endfunction
+
+ autocmd BufWinEnter ?* silent! call loadViewOrUnfold
'';
plugins = [