From 631667a8c2a4d6af0f51bb6d1c8d070a2dc1b276 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 --- init.lua | 12 +++++++----- lua/custom/plugins/init.lua | 16 +++++++++++++++- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 2c4399a3..0151077e 100644 --- a/init.lua +++ b/init.lua @@ -99,7 +99,7 @@ vim.g.have_nerd_font = true -- For more options, you can see `:help option-list` -- Make line numbers default ---vim.opt.number = true +vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! vim.opt.relativenumber = true @@ -163,7 +163,9 @@ vim.opt.scrolloff = 10 -- 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' }) @@ -937,17 +939,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, + }, +}