From 30880dd786173ec17ab084366148fba89137e03f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 7 Mar 2025 16:02:56 +0000 Subject: [PATCH] Remove oil.nvim --- nix/modules/home-manager/cli/neovim.nix | 1 - nvim/after/ftplugin/netrw.lua | 5 +++++ nvim/plugin/netrw.lua | 5 +---- nvim/plugin/oil.lua | 16 ---------------- 4 files changed, 6 insertions(+), 21 deletions(-) create mode 100644 nvim/after/ftplugin/netrw.lua delete mode 100644 nvim/plugin/oil.lua diff --git a/nix/modules/home-manager/cli/neovim.nix b/nix/modules/home-manager/cli/neovim.nix index d2bc2daa..fa72a50d 100644 --- a/nix/modules/home-manager/cli/neovim.nix +++ b/nix/modules/home-manager/cli/neovim.nix @@ -27,7 +27,6 @@ in harpoon2 mini-nvim nvim-web-devicons - oil-nvim phpactor refactoring-nvim standard-vim diff --git a/nvim/after/ftplugin/netrw.lua b/nvim/after/ftplugin/netrw.lua new file mode 100644 index 00000000..591d53c9 --- /dev/null +++ b/nvim/after/ftplugin/netrw.lua @@ -0,0 +1,5 @@ +local opt = vim.opt_local + +opt.cursorline = false +opt.number = true +opt.relativenumber = true diff --git a/nvim/plugin/netrw.lua b/nvim/plugin/netrw.lua index 1feb376d..ff775278 100644 --- a/nvim/plugin/netrw.lua +++ b/nvim/plugin/netrw.lua @@ -1,6 +1,3 @@ -vim.keymap.set("n", "pv", vim.cmd.Ex) +vim.keymap.set("n", "-", vim.cmd.Ex) vim.g.netrw_banner = 0 -vim.g.netrw_browse_split = 0 -vim.g.netrw_liststyle = 3 -vim.g.netrw_winsize = 20 diff --git a/nvim/plugin/oil.lua b/nvim/plugin/oil.lua deleted file mode 100644 index 5799eb20..00000000 --- a/nvim/plugin/oil.lua +++ /dev/null @@ -1,16 +0,0 @@ -require("oil").setup { - columns = { "icon" }, - - keymaps = { - [""] = false, - [""] = "actions.select_split", - }, - - skip_confirm_for_simple_edits = true, - - view_options = { - show_hidden = true, - }, -} - -vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" })