From 70a1581228f838b03545a4295aa6adf67b67c2a8 Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Mon, 23 Mar 2026 19:19:54 -0400 Subject: nvim overhaul --- vim/.config/nvim/lua/remap.lua | 57 +++++++++++------------------------------- 1 file changed, 15 insertions(+), 42 deletions(-) (limited to 'vim/.config/nvim/lua/remap.lua') 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', 'u', vim.cmd.UndotreeToggle) -- Better Term -local betterTerm = require('betterTerm') --- toggle firts term -vim.keymap.set({ "n", "t" }, "tt", betterTerm.open, { desc = "Open terminal" }) --- Select term focus --- vim.keymap.set({"n"}, "tf", betterTerm.select, { desc = "Select terminal"}) --- Create new term -local current = 2 -vim.keymap.set( - { "n" }, "tn", - function() - betterTerm.open(current) - current = current + 1 - end, - { desc = "New terminal" } -) - --- Neotree - -local ntc = require('neo-tree.command') -vim.keymap.set('n', '', 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" }, "tt", betterTerm.open, { desc = "Open terminal" }) +-- -- Select term focus +-- -- vim.keymap.set({"n"}, "tf", betterTerm.select, { desc = "Select terminal"}) +-- -- Create new term +-- local current = 2 +-- vim.keymap.set( +-- { "n" }, "tn", +-- function() +-- betterTerm.open(current) +-- current = current + 1 +-- end, +-- { desc = "New terminal" } +-- ) -- cgit v1.3.1