Add remaps for project tree

This commit is contained in:
Marco 2023-10-15 18:08:43 +02:00
parent 2834f92f61
commit 63e3cfdcd5
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,6 @@
local tree = require("nvim-tree")
tree.setup()
-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
@ -5,5 +8,7 @@ vim.g.loaded_netrwPlugin = 1
-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
vim.keymap.set("n", "<leader>fj", vim.cmd.NvimTreeFindFile)
vim.keymap.set("n", "<leader>ft", vim.cmd.NvimTreeFindFileToggle)
-- empty setup using defaults
require("nvim-tree").setup()

View File

@ -1,5 +1,5 @@
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
vim.keymap.set("n", "<leader>pv", vim.cmd.NvimTreeToggle)
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")