From f27f7b1502cd66172e0fa2e3cc1b9ce0b4381df3 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Wed, 28 Jul 2021 19:18:03 +0530 Subject: [PATCH] add hl to nvimtree_rootdir --- lua/highlights.lua | 2 +- lua/mappings.lua | 2 +- lua/plugins/nvimtree.lua | 4 ++-- lua/themes/{gruvbox.lua => gruvchad.lua} | 0 lua/themes/{nord.lua => norchad.lua} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename lua/themes/{gruvbox.lua => gruvchad.lua} (100%) rename lua/themes/{nord.lua => norchad.lua} (100%) diff --git a/lua/highlights.lua b/lua/highlights.lua index 42255d54..d817356c 100644 --- a/lua/highlights.lua +++ b/lua/highlights.lua @@ -75,7 +75,7 @@ fg("NvimTreeVertSplit", darker_black) bg("NvimTreeVertSplit", darker_black) fg("NvimTreeEndOfBuffer", darker_black) -fg("NvimTreeRootFolder", darker_black) +vim.cmd("hi NvimTreeRootFolder gui=underline guifg="..purple) bg("NvimTreeNormal", darker_black) fg_bg("NvimTreeStatuslineNc", darker_black, darker_black) fg_bg("NvimTreeWindowPicker", red, black2) diff --git a/lua/mappings.lua b/lua/mappings.lua index 56cfa109..364a0213 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -32,7 +32,7 @@ map("", "", 'v:count ? "k" : "gk"', {expr = true}) -- OPEN TERMINALS -- map("n", "", ":vnew +terminal | setlocal nobuflisted ", opt) -- term over right map("n", "", ":10new +terminal | setlocal nobuflisted ", opt) -- term bottom -map("n", "t", ":terminal ", opt) -- term buffer +map("n", "t", ": terminal ", opt) -- term buffer -- copy whole file content map("n", "", ":%y+", opt) diff --git a/lua/plugins/nvimtree.lua b/lua/plugins/nvimtree.lua index 5e9c0411..44447551 100644 --- a/lua/plugins/nvimtree.lua +++ b/lua/plugins/nvimtree.lua @@ -21,7 +21,7 @@ g.nvim_tree_indent_markers = 1 g.nvim_tree_hide_dotfiles = 1 g.nvim_tree_git_hl = 1 g.nvim_tree_highlight_opened_files = 0 -g.nvim_tree_root_folder_modifier = ":t" +g.nvim_tree_root_folder_modifier = table.concat {":t:gs?$?/..", string.rep(" ", 1000), "?:gs?^??"} g.nvim_tree_tab_open = 0 g.nvim_tree_allow_resize = 1 g.nvim_tree_add_trailing = 0 -- append a trailing slash to folder names @@ -62,7 +62,7 @@ g.nvim_tree_icons = { g.nvim_tree_bindings = { {key = {"", "o", "<2-LeftMouse>"}, cb = tree_cb("edit")}, - {key = {"<2-RightMouse>", ""}, cb = tree_cb("cd")}, + {key = {"<2-RightMouse>", ""}, cb = tree_cb("cd")}, {key = "", cb = tree_cb("vsplit")}, {key = "", cb = tree_cb("split")}, {key = "", cb = tree_cb("tabnew")}, diff --git a/lua/themes/gruvbox.lua b/lua/themes/gruvchad.lua similarity index 100% rename from lua/themes/gruvbox.lua rename to lua/themes/gruvchad.lua diff --git a/lua/themes/nord.lua b/lua/themes/norchad.lua similarity index 100% rename from lua/themes/nord.lua rename to lua/themes/norchad.lua