From 95c487367b44f1cc9498fd2550dcd4afc7ca657e Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 26 Feb 2025 23:23:42 +0100 Subject: [PATCH] feat: add oil.nvim --- modules/home-manager/neovim.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 6e7f10e..e67ef70 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -178,6 +178,15 @@ extraLuaFiles = [./nvim/autocommands.lua]; extraPlugins = with pkgs.vimPlugins; { + oil = { + package = oil-nvim; + setup = '' + require("oil").setup() + + vim.keymap.set("n", "N", ":Oil") + vim.keymap.set("n", "n", ':lua require("oil").toggle_float()') + ''; + }; harpoon = { package = harpoon2; setup = ''