From 8f51e9198dbba920394e22fffe38bd0b9f092a9b Mon Sep 17 00:00:00 2001 From: Nikos Papadakis Date: Wed, 15 May 2024 19:53:45 +0300 Subject: [PATCH] nvim --- home.nix | 4 ---- nvim/lua/plugins/init.lua | 22 ---------------------- nvim/lua/plugins/oil.lua | 26 ++++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 nvim/lua/plugins/oil.lua diff --git a/home.nix b/home.nix index a38f574..75c76ac 100644 --- a/home.nix +++ b/home.nix @@ -39,10 +39,6 @@ fonts.fontconfig.enable = true; - programs.kitty = { - enable = true; - }; - programs.git = { enable = true; userName = "Nikos Papadakis"; diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index 8e6f33d..91c77a0 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -17,28 +17,6 @@ return { event = "InsertEnter", opts = {} }, - { - "stevearc/oil.nvim", - tag = "v2.1.0", - opts = { - keymaps = { - ["g?"] = "actions.show_help", - [""] = "actions.select", - [""] = "actions.select_vsplit", - [""] = "actions.select_split", - [""] = "actions.select_tab", - [""] = "actions.preview", - [""] = "actions.close", - ["r"] = "actions.refresh", - ["-"] = "actions.parent", - ["_"] = "actions.open_cwd", - ["`"] = "actions.cd", - ["~"] = "actions.tcd", - ["g."] = "actions.toggle_hidden", - }, - use_default_keymaps = false, - } - }, { "lewis6991/gitsigns.nvim", event = "VeryLazy", diff --git a/nvim/lua/plugins/oil.lua b/nvim/lua/plugins/oil.lua new file mode 100644 index 0000000..b82318d --- /dev/null +++ b/nvim/lua/plugins/oil.lua @@ -0,0 +1,26 @@ +return { + "stevearc/oil.nvim", + tag = "v2.1.0", + config = function() + require("oil").setup { + keymaps = { + ["g?"] = "actions.show_help", + [""] = "actions.select", + [""] = "actions.select_vsplit", + [""] = "actions.select_split", + [""] = "actions.select_tab", + [""] = "actions.preview", + [""] = "actions.close", + ["r"] = "actions.refresh", + ["-"] = "actions.parent", + ["_"] = "actions.open_cwd", + ["`"] = "actions.cd", + ["~"] = "actions.tcd", + ["g."] = "actions.toggle_hidden", + }, + use_default_keymaps = false, + } + + vim.keymap.set("n", "o", "Oil", { desc = "Open Oil" }) + end +}