summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-03-19 16:52:58 -0400
committertriethyl <triethylammonium@pm.me>2026-03-19 16:52:58 -0400
commit89f87f8ef837a18fe1370d387f0f362549596e08 (patch)
tree166163f8ccb26c5deb6c185dd4d13978969acbd0
parent04681157c7374c073d1219f0c796756ec96c25bb (diff)
neovim: misc sessnion and cwd changes
-rw-r--r--pkgs/custom-neovim/config/lua/keymaps.lua1
-rw-r--r--pkgs/custom-neovim/config/lua/options.lua1
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/auto-session.lua15
-rw-r--r--pkgs/custom-neovim/todo.md2
4 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua
index 5cdeb09..3f7d143 100644
--- a/pkgs/custom-neovim/config/lua/keymaps.lua
+++ b/pkgs/custom-neovim/config/lua/keymaps.lua
@@ -43,6 +43,7 @@ mapkey("n", "<leader>tt", "Go to next tab", ":tabn<cr>")
mapkey("n", "<leader>tT", "Go to previous tab", ":tabp<cr>")
mapkey("n", "<leader>to", "Open new tab", ":tabnew<cr>")
mapkey("n", "<leader>tc", "Close current tab", ":tabclose<cr>")
+mapkey("n", "<leader>tr", "Reset tab cwd", ":tcd -<cr>")
-- Buffers
mapkey("n", "<leader>b", "Manage buffers", "")
diff --git a/pkgs/custom-neovim/config/lua/options.lua b/pkgs/custom-neovim/config/lua/options.lua
index a41f904..929fd14 100644
--- a/pkgs/custom-neovim/config/lua/options.lua
+++ b/pkgs/custom-neovim/config/lua/options.lua
@@ -8,6 +8,7 @@ vim.o.winborder = 'rounded' -- rounded window borders where possible.
vim.o.showtabline = 0 -- whether to only show tabline if there is more than one tab.
vim.o.laststatus = 3 -- only have one statusline at the bottom of the window.
vim.o.showmode = false -- don't show the mode in the commandline.
+vim.o.cmdheight = 0 -- Hide commandline when not in use
vim.o.ruler = false -- don't show #,# in the commandline.
vim.o.number = true -- set absolute numbered lines
vim.o.scrolloff = 4 -- minimal number of screen lines to keep above and below the cursor
diff --git a/pkgs/custom-neovim/config/lua/plugins/auto-session.lua b/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
index f352cad..3718b82 100644
--- a/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/auto-session.lua
@@ -7,18 +7,19 @@ return {
auto_restore = true,
legacy_cmds = false,
- cwd_change_handling = true,
- pre_cwd_changed_cmds = {
- "wa",
- "silent %bw!",
- "clearjumps",
- "lua MiniClue.ensure_buf_triggers()",
- },
+ -- cwd_change_handling = true,
+ -- pre_cwd_changed_cmds = {
+ -- "wa",
+ -- "silent %bw!",
+ -- "clearjumps",
+ -- "lua MiniClue.ensure_buf_triggers()",
+ -- },
git_use_branch_name = true,
git_auto_restore_on_branch_change = true,
suppressed_dirs = {
"~/",
+ "~/Sync",
},
}
end
diff --git a/pkgs/custom-neovim/todo.md b/pkgs/custom-neovim/todo.md
index f0940c4..339c750 100644
--- a/pkgs/custom-neovim/todo.md
+++ b/pkgs/custom-neovim/todo.md
@@ -1,6 +1,6 @@
# Todo
-- add mini notifications
+- Try nvim orgmode
- Overhaul markdown workflow
- Add image viewing keybind to open imv