<C-b> buffers and panels

This commit is contained in:
Julius Waldmann 2024-05-10 00:01:32 +02:00
parent 48ba8f6706
commit 695be11a3c
5 changed files with 9 additions and 16 deletions

View File

@ -4,7 +4,7 @@ local ui = require("harpoon.ui")
vim.keymap.set("n", "<leader>a", mark.add_file) vim.keymap.set("n", "<leader>a", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu) vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end) -- vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end) vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end) vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end) vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)

View File

@ -4,3 +4,4 @@ vim.keymap.set('n', '<C-p>', builtin.git_files, {})
vim.keymap.set('n', '<leader>ps', function() vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({ search = vim.fn.input("Grep > ") }); builtin.grep_string({ search = vim.fn.input("Grep > ") });
end) end)
vim.keymap.set('n', '<leader>b', builtin.buffers, {})

View File

@ -19,6 +19,7 @@
"plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" }, "plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "4d5fd21bae12ee6e9a79232e1c377f43c419d0c5" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "4d5fd21bae12ee6e9a79232e1c377f43c419d0c5" },
"telescope.nvim": { "branch": "master", "commit": "fac83a556e7b710dc31433dec727361ca062dbe9" }, "telescope.nvim": { "branch": "master", "commit": "fac83a556e7b710dc31433dec727361ca062dbe9" },
"tmux.nvim": { "branch": "main", "commit": "53ea7eab504730e7e8397fd2ae0133053d56afc8" },
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" }, "undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
"vim-fugitive": { "branch": "master", "commit": "ce882460cf3db12e99f8bf579cbf99e331f6dd4f" }, "vim-fugitive": { "branch": "master", "commit": "ce882460cf3db12e99f8bf579cbf99e331f6dd4f" },
"vim-vinegar": { "branch": "master", "commit": "bb1bcddf43cfebe05eb565a84ab069b357d0b3d6" } "vim-vinegar": { "branch": "master", "commit": "bb1bcddf43cfebe05eb565a84ab069b357d0b3d6" }

View File

@ -104,7 +104,6 @@ return lazy.setup({
}, },
} }
}, },
-- Uncomment these lines if you want to use the plugins -- Uncomment these lines if you want to use the plugins
-- use 'nvim-tree/nvim-tree.lua' -- use 'nvim-tree/nvim-tree.lua'
-- use 'nvim-tree/nvim-web-devicons' -- use 'nvim-tree/nvim-web-devicons'

View File

@ -10,13 +10,6 @@ vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv") vim.keymap.set("n", "N", "Nzzzv")
vim.keymap.set("n", "<leader>vwm", function()
require("vim-with-me").StartVimWithMe()
end)
vim.keymap.set("n", "<leader>svwm", function()
require("vim-with-me").StopVimWithMe()
end)
-- greatest remap ever -- greatest remap ever
vim.keymap.set("x", "<leader>p", [["_dP]]) vim.keymap.set("x", "<leader>p", [["_dP]])
@ -30,11 +23,10 @@ vim.keymap.set({"n", "v"}, "<leader>d", [["_d]])
vim.keymap.set("i", "<C-c>", "<Esc>") vim.keymap.set("i", "<C-c>", "<Esc>")
vim.keymap.set("n", "Q", "<nop>") vim.keymap.set("n", "Q", "<nop>")
vim.keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
vim.keymap.set("n", "<leader>f", vim.lsp.buf.format) vim.keymap.set("n", "<leader>f", vim.lsp.buf.format)
vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz") -- vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz") -- vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz") vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz") vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
@ -57,10 +49,10 @@ vim.api.nvim_set_keymap(
) )
--panels --panels
vim.keymap.set('n', '<C-J>', '<C-W><C-J>', {desc = 'Move to window below'}) vim.keymap.set('n', '<C-j>', '<C-W><C-J>', {desc = 'Move to window below'})
vim.keymap.set('n', '<C-K>', '<C-W><C-K>', {desc = 'Move to window above'}) vim.keymap.set('n', '<C-k>', '<C-W><C-K>', {desc = 'Move to window above'})
vim.keymap.set('n', '<C-L>', '<C-W><C-L>', {desc = 'Move to window to the right'}) vim.keymap.set('n', '<C-l>', '<C-W><C-L>', {desc = 'Move to window to the right'})
vim.keymap.set('n', '<C-H>', '<C-W><C-H>', {desc = 'Move to window to the left'}) vim.keymap.set('n', '<C-h>', '<C-W><C-H>', {desc = 'Move to window to the left'})
--terminal ESC --terminal ESC
vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]],{noremap=true}) vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]],{noremap=true})