From 25ac5e35843a3ab8e3f29bbd43f67d6870439019 Mon Sep 17 00:00:00 2001 From: Arpan Swaroop Date: Tue, 14 Jan 2025 12:31:44 -0600 Subject: [PATCH] added oil to nvim config rebase merge conflicts --- init.lua | 10 ++++++---- lua/custom/plugins/init.lua | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index b5e25e02..3b117093 100644 --- a/init.lua +++ b/init.lua @@ -173,7 +173,9 @@ vim.o.confirm = true -- See `:help hlsearch` vim.keymap.set('n', '', 'nohlsearch') +-- CUSTOM KEYMAPS MOVE TO SEPERATE FILE PLEASE!!!!! vim.keymap.set('i', 'kj', '') +vim.keymap.set('n', '-', 'Oil', { desc = 'Open Parent Directory' }) -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) @@ -973,17 +975,17 @@ require('lazy').setup({ -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.indent_line', -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', + require 'kickstart.plugins.autopairs', -- require 'kickstart.plugins.neo-tree', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope! diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..f331fb5e 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,18 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + { + 'stevearc/oil.nvim', + opts = {}, + dependencies = { { 'echasnovski/mini.icons', opts = {} } }, + config = function() + require('oil').setup { + default_file_explorer = true, + view_options = { + show_hidden = true, + }, + } + end, + }, +}