Stuffffff

This commit is contained in:
Christian Nieves
2024-07-03 16:59:49 +00:00
parent e4dfbb859d
commit fe48c126db
4 changed files with 41 additions and 128 deletions

View File

@ -13,7 +13,9 @@ return {
{
desc = "󰦛 cwd session",
group = "Number",
action = "SessionLoad",
action = function()
require("persistence").load()
end,
key = ".",
},
{

View File

@ -1,7 +1,6 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
-- cmd = {
-- "NeoTreeFocusToggle",
-- "NeoTreeFloatToggle",
@ -23,6 +22,39 @@ return {
"diagnostics",
-- ...and any additional source
},
source_selector = {
winbar = false, -- toggle to show selector on winbar
statusline = false, -- toggle to show selector on statusline
show_scrolled_off_parent_node = false, -- boolean
sources = { -- table
{
source = "filesystem", -- string
display_name = "  Files ", -- string | nil
},
{
source = "buffers", -- string
display_name = "  Buffers ", -- string | nil
},
{
source = "git_status", -- string
display_name = "  Git ", -- string | nil
},
},
content_layout = "start", -- string
tabs_layout = "equal", -- string
truncation_character = "", -- string
tabs_min_width = nil, -- int | nil
tabs_max_width = nil, -- int | nil
padding = 0, -- int | { left: int, right: int }
separator = { left = "", right = "" }, -- string | { left: string, right: string, override: string | nil }
separator_active = nil, -- string | { left: string, right: string, override: string | nil } | nil
show_separator_on_edge = false, -- boolean
highlight_tab = "NeoTreeTabInactive", -- string
highlight_tab_active = "NeoTreeTabActive", -- string
highlight_background = "NeoTreeTabInactive", -- string
highlight_separator = "NeoTreeTabSeparatorInactive", -- string
highlight_separator_active = "NeoTreeTabSeparatorActive", -- string
},
hijack_netrw_behavior = "open_current",
window = {
mappings = {
@ -36,7 +68,9 @@ return {
"MunifTanjim/nui.nvim",
},
keys = {
{ "<C-n>", ":Neotree filesystem reveal toggle dir=%:p:h<cr>", desc = "Open NeoTree" },
-- { "<C-n>", ":Neotree filesystem reveal toggle dir=%:p:h<cr>", desc = "Open NeoTree" },
{ "<C-N>", ":Neotree reveal_force_cwd<CR>", desc = "Open NeoTree CWD" },
{ "<C-n>", ":Neotree float reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" },
},
},
}