summaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-09-06 10:19:42 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-09-06 10:19:42 -0400
commit9973585a15e2769ebc8dfe81e7c35c5965064171 (patch)
treed290cbdc6a17e27a33c5003db5daaf757fdce410 /lua/plugins
parentd5c04777b219edd1b37fa27fc130f89ef17d4df5 (diff)
Latex Compiler goodies and oil.nvim plugin
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/oil.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua
new file mode 100644
index 0000000..0a912b7
--- /dev/null
+++ b/lua/plugins/oil.lua
@@ -0,0 +1,34 @@
+return {
+ "stevearc/oil.nvim",
+ dependencies = { "nvim-tree/nvim-web-devicons" },
+ config = function()
+ require("oil").setup({
+ columns = { "icon" },
+ keymaps = {
+ ["<C-h>"] = false,
+ ["<M-h>"] = "actions.select_split",
+ },
+ view_options = {
+ show_hidden = true,
+ },
+ })
+ end,
+ keys = {
+
+ { -- Floating Oil window
+ "<leader>-",
+ function()
+ require("oil").toggle_float()
+ end,
+ mode = "n",
+ desc = "Toggle floating Oil window",
+ },
+
+ { -- Open parent directory
+ "-",
+ "<cmd>Oil<CR>",
+ mode = "n",
+ desc = "Open parent directory",
+ },
+ },
+}