From 9e8af5ad93a84a005a314a8cb619e0b1a617c05a Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 24 Nov 2021 20:08:11 +0530 Subject: [PATCH] include NvimTreeNormalNC for transparency | add #608 --- lua/colors/highlights.lua | 1 + lua/core/mappings.lua | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/colors/highlights.lua b/lua/colors/highlights.lua index d460a64..3fed96b 100644 --- a/lua/colors/highlights.lua +++ b/lua/colors/highlights.lua @@ -136,6 +136,7 @@ fg_bg("TelescopeResultsTitle", red, one_bg) -- Disable some highlight in nvim tree if transparency enabled if ui.transparency then bg("NvimTreeNormal", "NONE") + bg("NvimTreeNormalNC", "NONE") bg("NvimTreeStatusLineNC", "NONE") bg("NvimTreeVertSplit", "NONE") fg("NvimTreeVertSplit", grey) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index e192ea5..0036234 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -29,6 +29,12 @@ M.misc = function() -- use ESC to turn off search highlighting map("n", "", ":noh ") + + -- center cursor when moving (goto_definition) + + + -- yank from current cursor to end of line + map("n", "Y", "yg$") end local function optional_mappings() @@ -150,7 +156,7 @@ M.telescope = function() local m = plugin_maps.telescope map("n", m.buffers, ":Telescope buffers ") - map("n", m.find_files, ":Telescope find_files ") + map("n", m.find_files, ":Telescope find_files no_ignore=true ") map("n", m.find_hiddenfiles, ":Telescope find_files hidden=true ") map("n", m.git_commits, ":Telescope git_commits ") map("n", m.git_status, ":Telescope git_status ")