diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-30 11:32:44 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-30 11:32:44 -0400 |
| commit | 39e8454b2a6d7a6e4402206bea6c4d074aad016d (patch) | |
| tree | 5d504f36adf922d7319a351fcdbf20db7574446c /pkgs/custom-neovim | |
| parent | 69b3ae7497b0a5de71474fa9a2ff309c1887beec (diff) | |
neovim: added zoxide and fixed git add all
Diffstat (limited to 'pkgs/custom-neovim')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/keymaps.lua | 2 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/zoxide.lua | 15 | ||||
| -rw-r--r-- | pkgs/custom-neovim/default.nix | 1 | ||||
| -rw-r--r-- | pkgs/custom-neovim/todo.md | 2 |
4 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/custom-neovim/config/lua/keymaps.lua b/pkgs/custom-neovim/config/lua/keymaps.lua index 74366a2..a6c74be 100644 --- a/pkgs/custom-neovim/config/lua/keymaps.lua +++ b/pkgs/custom-neovim/config/lua/keymaps.lua @@ -21,7 +21,7 @@ mapkey("n", "<leader>e", "Open file manager", ":lua MiniFiles.open()<cr>", "mini mapkey("n", "<leader>g", "Manage git", "") mapkey("n", "<leader>gg", "Open neogit", ":Neogit<cr>", "neogit") mapkey("n", "<leader>ga", "Git add", ":Git add %:p<cr>", "mini-git") -mapkey("n", "<leader>gA", "Git add cwd", ":Git add "..vim.fn.getcwd().."/.<cr>", "mini-git") +mapkey("n", "<leader>gA", "Git add cwd", function() vim.cmd("Git add "..vim.fn.getcwd().."/.") end, "mini-git") mapkey("n", "<leader>gr", "Git remove", ":Git rm %:p<cr>", "mini-git") mapkey("n", "<leader>gc", "Git commit", ":Git commit<cr>", "mini-git") mapkey("n", "<leader>gs", "Git status", ":Git status<cr>", "mini-git") diff --git a/pkgs/custom-neovim/config/lua/plugins/zoxide.lua b/pkgs/custom-neovim/config/lua/plugins/zoxide.lua new file mode 100644 index 0000000..c705705 --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/zoxide.lua @@ -0,0 +1,15 @@ +return { + "zoxide.vim", + lazy = true, + cmd = { + "Z", + "Lz", + "Tz", + "Zi", + "Lzi", + "Tzi", + }, + -- after = function () + -- require("zoxide") + -- end +} diff --git a/pkgs/custom-neovim/default.nix b/pkgs/custom-neovim/default.nix index 149ab12..6501f77 100644 --- a/pkgs/custom-neovim/default.nix +++ b/pkgs/custom-neovim/default.nix @@ -34,6 +34,7 @@ inputs.mnw.lib.wrap pkgs { mini-pairs comment-nvim auto-session + zoxide-vim # Git Plugins mini-git diff --git a/pkgs/custom-neovim/todo.md b/pkgs/custom-neovim/todo.md index 8f2573e..f750d97 100644 --- a/pkgs/custom-neovim/todo.md +++ b/pkgs/custom-neovim/todo.md @@ -1,8 +1,6 @@ # Todo - make blink not complete in comments -- add git commands (add all and status) -- add zoxide plugin - add markdown renderer - add spellcheck to markdown - setup actions preview keybind |
