diff options
| author | seth <[email protected]> | 2023-09-06 13:58:17 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-06 13:58:17 -0400 |
| commit | d99a950bd81531e7b5f5a76fd5f0861976060d45 (patch) | |
| tree | 1828899609b7381e051d690a7f22d5b5580291d5 /users/seth/programs/neovim/config/keybinds.lua | |
| parent | f9d669cbd9a0eedc0f125b62c44be20e831cb26b (diff) | |
seth/neovim: overhaul config
Diffstat (limited to 'users/seth/programs/neovim/config/keybinds.lua')
| -rw-r--r-- | users/seth/programs/neovim/config/keybinds.lua | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/users/seth/programs/neovim/config/keybinds.lua b/users/seth/programs/neovim/config/keybinds.lua index a71f606..7dab12e 100644 --- a/users/seth/programs/neovim/config/keybinds.lua +++ b/users/seth/programs/neovim/config/keybinds.lua @@ -5,9 +5,20 @@ local set = function(mode, key, vimcmd) vim.keymap.set(mode, key, vimcmd, opts) end -set("n", "<leader>t", function() - vim.cmd("NvimTreeToggle") -end) +if pcall(require, "neo-tree.command") then + set("n", "<leader>t", function() + require("neo-tree.command").execute({ + toggle = true, + dir = vim.loop.cwd(), + }) + end) +end + +if pcall(require, "flash") then + set({ "n", "o", "x" }, "s", function() + require("flash").jump() + end) +end for i = 1, 9 do set("n", "<leader>" .. i, function() |
