From 89f87f8ef837a18fe1370d387f0f362549596e08 Mon Sep 17 00:00:00 2001 From: triethyl Date: Thu, 19 Mar 2026 16:52:58 -0400 Subject: neovim: misc sessnion and cwd changes --- pkgs/custom-neovim/config/lua/keymaps.lua | 1 + pkgs/custom-neovim/config/lua/options.lua | 1 + pkgs/custom-neovim/config/lua/plugins/auto-session.lua | 15 ++++++++------- pkgs/custom-neovim/todo.md | 2 +- 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", "tt", "Go to next tab", ":tabn") mapkey("n", "tT", "Go to previous tab", ":tabp") mapkey("n", "to", "Open new tab", ":tabnew") mapkey("n", "tc", "Close current tab", ":tabclose") +mapkey("n", "tr", "Reset tab cwd", ":tcd -") -- Buffers mapkey("n", "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 -- cgit v1.2.3