fix: nvim harpoon mappings + formatting
This commit is contained in:
parent
709c7e23c5
commit
c749c9098e
4 changed files with 56 additions and 52 deletions
|
@ -1,44 +1,46 @@
|
|||
require "nvchad.mappings"
|
||||
|
||||
local map = vim.keymap.set
|
||||
local nomap = vim.keymap.set
|
||||
-- remove nvchad shell mappings
|
||||
vim.keymap.del("n", "<leader>h")
|
||||
vim.keymap.del("n", "<leader>v")
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
nomap({ "i", "x", "n", "s" }, "<leader>h")
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("i", "jk", "<ESC>")
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f1>", function()
|
||||
require("harpoon"):list():select(1)
|
||||
end, { desc = "Harpoon file 1" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f2>", function()
|
||||
require("harpoon"):list():select(2)
|
||||
end, { desc = "Harpoon file 2" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f3>", function()
|
||||
require("harpoon"):list():select(3)
|
||||
end, { desc = "Harpoon file 3" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f4>", function()
|
||||
require("harpoon"):list():select(4)
|
||||
end, { desc = "Harpoon file 4" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f5>", function()
|
||||
require("harpoon"):list():select(5)
|
||||
end, { desc = "Harpoon file 5" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f6>", function()
|
||||
require("harpoon"):list():select(6)
|
||||
end, { desc = "Harpoon file 6" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f7>", function()
|
||||
require("harpoon"):list():select(7)
|
||||
end, { desc = "Harpoon file 7" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f8>", function()
|
||||
require("harpoon"):list():select(8)
|
||||
end, { desc = "Harpoon file 8" })
|
||||
|
||||
-- map({ "i", "x", "n", "s" }, "<f1>", function()
|
||||
-- require("harpoon"):list():select(1)
|
||||
-- end, { desc = "Harpoon file 1" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f2>", function()
|
||||
-- require("harpoon"):list():select(2)
|
||||
-- end, { desc = "Harpoon file 2" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f3>", function()
|
||||
-- require("harpoon"):list():select(3)
|
||||
-- end, { desc = "Harpoon file 3" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f4>", function()
|
||||
-- require("harpoon"):list():select(4)
|
||||
-- end, { desc = "Harpoon file 4" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f5>", function()
|
||||
-- require("harpoon"):list():select(5)
|
||||
-- end, { desc = "Harpoon file 5" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f6>", function()
|
||||
-- require("harpoon"):list():select(6)
|
||||
-- end, { desc = "Harpoon file 6" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f7>", function()
|
||||
-- require("harpoon"):list():select(7)
|
||||
-- end, { desc = "Harpoon file 7" })
|
||||
--
|
||||
-- map({ "i", "x", "n", "s" }, "<f8>", function()
|
||||
-- require("harpoon"):list():select(8)
|
||||
-- end, { desc = "Harpoon file 8" })
|
||||
--
|
||||
map({ "x", "n", "s" }, "<leader>/", "<cmd>Telescope live_grep<CR>", { desc = "telescope live grep" })
|
||||
map(
|
||||
{ "x", "n", "s" },
|
||||
|
|
|
@ -11,7 +11,10 @@ return {
|
|||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"NvChad/nvterm",
|
||||
enabled = false
|
||||
},
|
||||
{
|
||||
"kdheepak/lazygit.nvim",
|
||||
lazy = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue