From fb73cce28add4fd954b44db4d28fd1a8ae8087bd Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:12:41 +0200 Subject: [PATCH] Update --- home/programs/nvim/options.nix | 2 +- home/programs/nvim/plugins/tree.nix | 32 ++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/home/programs/nvim/options.nix b/home/programs/nvim/options.nix index b0c6518..a36cc14 100644 --- a/home/programs/nvim/options.nix +++ b/home/programs/nvim/options.nix @@ -24,7 +24,7 @@ wildmode = "list:longest"; completeopt = [ "menuone" "noselect" ]; signcolumn = "yes"; - cursorline = true; + cursorline = false; scrolloff = 8; mouse = "a"; diff --git a/home/programs/nvim/plugins/tree.nix b/home/programs/nvim/plugins/tree.nix index 2ec6cbc..6e753ee 100644 --- a/home/programs/nvim/plugins/tree.nix +++ b/home/programs/nvim/plugins/tree.nix @@ -4,9 +4,39 @@ neo-tree.enable = true; oil = { enable = true; - settings = { + settings = { default_file_explorer = false; skip_confirm_for_simple_edits = true; + win_options = { + concealcursor = "ncv"; + conceallevel = 3; + cursorcolumn = false; + foldcolumn = "0"; + list = false; + signcolumn = "no"; + spell = false; + wrap = false; + }; + float = { padding = 5; }; + keymaps = { + "-" = "actions.parent"; + "b" = "actions.parent"; + "" = "actions.close"; + "" = "actions.select_split"; + "" = "actions.refresh"; + "" = "actions.preview"; + "" = "actions.select_vsplit"; + "" = "actions.select_tab"; + "" = "actions.select"; + _ = "actions.open_cwd"; + "`" = "actions.cd"; + "g." = "actions.toggle_hidden"; + "g?" = "actions.show_help"; + "g\\" = "actions.toggle_trash"; + gs = "actions.change_sort"; + gx = "actions.open_external"; + "~" = "actions.tcd"; + }; }; }; };