diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-03-23 19:19:54 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-03-23 19:19:54 -0400 |
| commit | 70a1581228f838b03545a4295aa6adf67b67c2a8 (patch) | |
| tree | 7a9ba8ffc9a109c0fcc6571e9df939950f05b50d /vim/.config/nvim/lua/remap.lua | |
| parent | a34e41df2ef5208843b67f67da8d61fbba12f0fd (diff) | |
nvim overhaul
Diffstat (limited to 'vim/.config/nvim/lua/remap.lua')
| -rw-r--r-- | vim/.config/nvim/lua/remap.lua | 57 |
1 files changed, 15 insertions, 42 deletions
diff --git a/vim/.config/nvim/lua/remap.lua b/vim/.config/nvim/lua/remap.lua index 1f8964e..0128949 100644 --- a/vim/.config/nvim/lua/remap.lua +++ b/vim/.config/nvim/lua/remap.lua @@ -57,45 +57,18 @@ vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle) -- Better Term -local betterTerm = require('betterTerm') --- toggle firts term -vim.keymap.set({ "n", "t" }, "<leader>tt", betterTerm.open, { desc = "Open terminal" }) --- Select term focus --- vim.keymap.set({"n"}, "<leader>tf", betterTerm.select, { desc = "Select terminal"}) --- Create new term -local current = 2 -vim.keymap.set( - { "n" }, "<leader>tn", - function() - betterTerm.open(current) - current = current + 1 - end, - { desc = "New terminal" } -) - --- Neotree - -local ntc = require('neo-tree.command') -vim.keymap.set('n', '<C-b>', function() - local reveal_file = vim.fn.expand('%:p') - if (reveal_file == '') then - reveal_file = vim.fn.getcwd() - else - local f = io.open(reveal_file, "r") - if (f) then - f.close(f) - else - reveal_file = vim.fn.getcwd() - end - end - ntc.execute({ - action = "focus", -- OPTIONAL, this is the default value - source = "filesystem", -- OPTIONAL, this is the default value - position = "right", -- OPTIONAL, this is the default value - reveal_file = reveal_file, -- path to file or folder to reveal - reveal_force_cwd = true, -- change cwd without asking if needed - toggle = true, - }) - end, - { desc = "Show Sidebar" } -) +-- local betterTerm = require('betterTerm') +-- -- toggle firts term +-- vim.keymap.set({ "n", "t" }, "<leader>tt", betterTerm.open, { desc = "Open terminal" }) +-- -- Select term focus +-- -- vim.keymap.set({"n"}, "<leader>tf", betterTerm.select, { desc = "Select terminal"}) +-- -- Create new term +-- local current = 2 +-- vim.keymap.set( +-- { "n" }, "<leader>tn", +-- function() +-- betterTerm.open(current) +-- current = current + 1 +-- end, +-- { desc = "New terminal" } +-- ) |
