Set treesitter to v0.9.2 and fixed harpoon bind error
This commit is contained in:
parent
6ac46c0a6c
commit
f2702fc46b
@ -6,16 +6,17 @@ vim.keymap.set('n', '<leader>ps', function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
||||
end)
|
||||
|
||||
-- Harpoon
|
||||
local mark = require("harpoon.mark")
|
||||
local ui = require("harpoon.ui")
|
||||
vim.keymap.set("n", "<leader>a", mark.add_file)
|
||||
vim.keymap.set("n", "<C-t>", ui.toggle_quick_menu)
|
||||
|
||||
vim.keymap.set("n", "<C-q>", function() ui.nav_file(1) end)
|
||||
vim.keymap.set("n", "<C-w>", function() ui.nav_file(2) end)
|
||||
vim.keymap.set("n", "<C-e>", function() ui.nav_file(3) end)
|
||||
vim.keymap.set("n", "<C-r>", function() ui.nav_file(4) end)
|
||||
-- Harpoon 2
|
||||
local harpoon = require("harpoon")
|
||||
-- REQUIRED
|
||||
harpoon:setup()
|
||||
-- REQUIRED
|
||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
|
||||
vim.keymap.set("n", "<C-t>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
vim.keymap.set("n", "<C-q>", function() harpoon:list():select(1) end)
|
||||
vim.keymap.set("n", "<C-w>", function() harpoon:list():select(2) end)
|
||||
vim.keymap.set("n", "<C-e>", function() harpoon:list():select(3) end)
|
||||
vim.keymap.set("n", "<C-r>", function() harpoon:list():select(4) end)
|
||||
|
||||
-- Zenmode
|
||||
vim.keymap.set("n", "<leader>pz", function()
|
||||
|
@ -7,5 +7,6 @@ return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
tag = "v0.9.2",
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user