diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-08-28 00:03:38 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-08-28 00:03:38 +0400 |
commit | 733eb5dc93c81289ff1a1a73562903f9eeed3e13 (patch) | |
tree | 1e39a0ca17c2e81e2cc5f539b05ac46ea25bdc64 /config/nvim/lua/plugins.lua | |
parent | c9123e6fa78d21050b26caa02a0202ebd9e3195b (diff) |
feat(nvim): switch from neo-tree to netrw with l/h navigation and Vexplore toggle
- Removed neo-tree plugin and dependencies
- Configured netrw as tree-style explorer
- `l` opens file/directory
- `h` closes/goes up directory
- Added Vexplore toggle on <leader>e
- Auto-open Vexplore if starting nvim with a directory argument
- Refactored keymaps to use `opts` table
- Added inline comments for netrw settings
- Minor formatting cleanup in plugin setups
Diffstat (limited to 'config/nvim/lua/plugins.lua')
-rw-r--r-- | config/nvim/lua/plugins.lua | 70 |
1 files changed, 19 insertions, 51 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index c85cd6e..e2454a1 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -23,30 +23,26 @@ require("lazy").setup({ "numToStr/Comment.nvim", "windwp/nvim-autopairs", "EdenEast/nightfox.nvim", - "nvim-neo-tree/neo-tree.nvim", "nvim-orgmode/orgmode", "jubnzv/mdeval.nvim", - -- neo-tree-dependencies - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended - "MunifTanjim/nui.nvim" }, + }) require("Comment").setup{ - padding = true, -- Add a space b/w comment and the line - sticky = true, -- Whether the cursor should stay at its position - ignore = nil, -- Lines to be ignored while (un)comment - -- LHS of toggle mappings in NORMAL mode - toggler = { - line = 'cc', --Line-comment toggle keymap - block = 'cb', -- Block-comment toggle keymap - }, - -- LHS of operator-pending mappings in NORMAL and VISUAL mode - opleader = { - line = 'cc', --Line-comment keymap - block = 'cb', --Block-comment keymap - }, + padding = true, -- Add a space b/w comment and the line + sticky = true, -- Whether the cursor should stay at its position + ignore = nil, -- Lines to be ignored while (un)comment + -- LHS of toggle mappings in NORMAL mode + toggler = { + line = 'cc', --Line-comment toggle keymap + block = 'cb', -- Block-comment toggle keymap + }, + -- LHS of operator-pending mappings in NORMAL and VISUAL mode + opleader = { + line = 'cc', --Line-comment keymap + block = 'cb', --Block-comment keymap + }, } require("toggleterm").setup{ @@ -62,39 +58,11 @@ require("toggleterm").setup{ } -require("neo-tree").setup({ - filesystem = { - window = { - mappings = { - ["l"] = "open", - ["h"] = "close_node", - ["zh"] = "toggle_hidden", - ["H"] = "close_all_nodes", - } - } - }, - default_component_configs = { - indent = { - --Indent Markers - with_markers = true, - indent_marker = "│", - last_indent_marker = "└", - indent_size = 2, - -- Expanders - with_expanders = false, --Not active - expander_collapsed = ">", - expander_expanded = "", - expander_highlight = "NeoTreeExpander", - - }, - }, -}) - require("nvim-autopairs").setup({ - disable_filetype = { "TelescopePrompt", "spectre_panel", "neo-tree-popup", "conf"}, - disable_in_macro = true, - disable_in_visualblock = false, - disable_in_replace_mode = true, + disable_filetype = { "TelescopePrompt", "spectre_panel", "neo-tree-popup", "conf"}, + disable_in_macro = true, + disable_in_visualblock = false, + disable_in_replace_mode = true, }) require('orgmode').setup({ @@ -103,5 +71,5 @@ require('orgmode').setup({ }) require 'mdeval'.setup({ - require_confirmation=false + require_confirmation=false }) |