Added comment and toggle to neotree

This commit is contained in:
Pablu23
2024-05-21 09:53:41 +02:00
parent c39bd34324
commit f011aa49f1
4 changed files with 64 additions and 56 deletions

View File

@@ -1,4 +1,5 @@
{
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
"LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" },
"catppuccin": { "branch": "main", "commit": "d97387aea8264f484bb5d5e74f2182a06c83e0d8" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },

7
lua/plugins/comment.lua Normal file
View File

@@ -0,0 +1,7 @@
return {
'numToStr/Comment.nvim',
opts = {
-- add any options here
},
lazy = false,
}

View File

@@ -34,11 +34,11 @@ return {
toggle_telescope(harpoon:list())
end)
vim.keymap.set("n", "<A-p>", function()
harpoon:list():prev()
end)
vim.keymap.set("n", "<A-n>", function()
harpoon:list():next()
end)
-- vim.keymap.set("n", "<A-p>", function()
-- harpoon:list():prev()
-- end)
-- vim.keymap.set("n", "<A-n>", function()
-- harpoon:list():next()
-- end)
end,
}

View File

@@ -17,6 +17,6 @@ return {
},
},
})
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal right<CR>", {}) -- toggle
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal right toggle<CR>", {})
end,
}