Add remaps for project tree
This commit is contained in:
parent
2834f92f61
commit
63e3cfdcd5
@ -1,3 +1,6 @@
|
|||||||
|
local tree = require("nvim-tree")
|
||||||
|
tree.setup()
|
||||||
|
|
||||||
-- disable netrw at the very start of your init.lua
|
-- disable netrw at the very start of your init.lua
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
@ -5,5 +8,7 @@ vim.g.loaded_netrwPlugin = 1
|
|||||||
-- set termguicolors to enable highlight groups
|
-- set termguicolors to enable highlight groups
|
||||||
vim.opt.termguicolors = true
|
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
|
-- empty setup using defaults
|
||||||
require("nvim-tree").setup()
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
vim.g.mapleader = " "
|
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", "J", ":m '>+1<CR>gv=gv")
|
||||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
|
Loading…
Reference in New Issue
Block a user