update nvimTree configs && highlights
This commit is contained in:
parent
859a557297
commit
9233adfd5f
@ -34,7 +34,7 @@ cmd "hi NvimTreeFolderName guifg = #61afef"
|
|||||||
cmd "hi NvimTreeIndentMarker guifg=#383c44"
|
cmd "hi NvimTreeIndentMarker guifg=#383c44"
|
||||||
cmd "hi NvimTreeNormal guibg=#1b1f27"
|
cmd "hi NvimTreeNormal guibg=#1b1f27"
|
||||||
cmd "hi NvimTreeVertSplit guifg=#1e222a"
|
cmd "hi NvimTreeVertSplit guifg=#1e222a"
|
||||||
cmd "hi NvimTreeRootFolder guifg=#f9929b"
|
cmd "hi NvimTreeRootFolder guifg=#1b1f27"
|
||||||
|
|
||||||
-- telescope
|
-- telescope
|
||||||
cmd "hi TelescopeBorder guifg=#2a2e36"
|
cmd "hi TelescopeBorder guifg=#2a2e36"
|
||||||
|
@ -30,19 +30,19 @@ g.nvim_tree_icons = {
|
|||||||
staged = "✓",
|
staged = "✓",
|
||||||
unmerged = "",
|
unmerged = "",
|
||||||
renamed = "➜",
|
renamed = "➜",
|
||||||
untracked = "★"
|
untracked = "★",
|
||||||
|
deleted = "",
|
||||||
|
ignored = "◌"
|
||||||
},
|
},
|
||||||
folder = {
|
folder = {
|
||||||
default = "",
|
default = "",
|
||||||
open = "",
|
open = "",
|
||||||
symlink = ""
|
symlink = "",
|
||||||
|
empty = "",
|
||||||
|
empty_open = "",
|
||||||
|
symlink_open = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local get_lua_cb = function(cb_name)
|
|
||||||
return string.format(":lua require'nvim-tree'.on_keypress('%s')<CR>", cb_name)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Mappings for nvimtree
|
-- Mappings for nvimtree
|
||||||
|
|
||||||
vim.api.nvim_set_keymap(
|
vim.api.nvim_set_keymap(
|
||||||
@ -55,30 +55,39 @@ vim.api.nvim_set_keymap(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local tree_cb = require "nvim-tree.config".nvim_tree_callback
|
||||||
|
|
||||||
g.nvim_tree_bindings = {
|
g.nvim_tree_bindings = {
|
||||||
["<CR>"] = get_lua_cb("edit"),
|
["u"] = ":lua require'some_module'.some_function()<cr>",
|
||||||
["o"] = get_lua_cb("edit"),
|
-- default mappings
|
||||||
["<2-LeftMouse>"] = get_lua_cb("edit"),
|
["<CR>"] = tree_cb("edit"),
|
||||||
["<2-RightMouse>"] = get_lua_cb("cd"),
|
["o"] = tree_cb("edit"),
|
||||||
["<C-]>"] = get_lua_cb("cd"),
|
["<2-LeftMouse>"] = tree_cb("edit"),
|
||||||
["<C-v>"] = get_lua_cb("vsplit"),
|
["<2-RightMouse>"] = tree_cb("cd"),
|
||||||
["<C-x>"] = get_lua_cb("split"),
|
["<C-]>"] = tree_cb("cd"),
|
||||||
["<C-t>"] = get_lua_cb("tabnew"),
|
["<C-v>"] = tree_cb("vsplit"),
|
||||||
["<BS>"] = get_lua_cb("close_node"),
|
["<C-x>"] = tree_cb("split"),
|
||||||
["<S-CR>"] = get_lua_cb("close_node"),
|
["<C-t>"] = tree_cb("tabnew"),
|
||||||
["<Tab>"] = get_lua_cb("preview"),
|
["<"] = tree_cb("prev_sibling"),
|
||||||
["I"] = get_lua_cb("toggle_ignored"),
|
[">"] = tree_cb("next_sibling"),
|
||||||
["H"] = get_lua_cb("toggle_dotfiles"),
|
["<BS>"] = tree_cb("close_node"),
|
||||||
["R"] = get_lua_cb("refresh"),
|
["<S-CR>"] = tree_cb("close_node"),
|
||||||
["a"] = get_lua_cb("create"),
|
["<Tab>"] = tree_cb("preview"),
|
||||||
["d"] = get_lua_cb("remove"),
|
["I"] = tree_cb("toggle_ignored"),
|
||||||
["r"] = get_lua_cb("rename"),
|
["H"] = tree_cb("toggle_dotfiles"),
|
||||||
["<C-r>"] = get_lua_cb("full_rename"),
|
["R"] = tree_cb("refresh"),
|
||||||
["x"] = get_lua_cb("cut"),
|
["a"] = tree_cb("create"),
|
||||||
["c"] = get_lua_cb("copy"),
|
["d"] = tree_cb("remove"),
|
||||||
["p"] = get_lua_cb("paste"),
|
["r"] = tree_cb("rename"),
|
||||||
["[c"] = get_lua_cb("prev_git_item"),
|
["<C-r>"] = tree_cb("full_rename"),
|
||||||
["]c"] = get_lua_cb("next_git_item"),
|
["x"] = tree_cb("cut"),
|
||||||
["-"] = get_lua_cb("dir_up"),
|
["c"] = tree_cb("copy"),
|
||||||
["q"] = get_lua_cb("close")
|
["p"] = tree_cb("paste"),
|
||||||
|
["y"] = tree_cb("copy_name"),
|
||||||
|
["Y"] = tree_cb("copy_path"),
|
||||||
|
["gy"] = tree_cb("copy_absolute_path"),
|
||||||
|
["[c"] = tree_cb("prev_git_item"),
|
||||||
|
["]c"] = tree_cb("next_git_item"),
|
||||||
|
["-"] = tree_cb("dir_up"),
|
||||||
|
["q"] = tree_cb("close")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user