Skip to content

Commit 631667a

Browse files
committed
added oil to nvim config
1 parent be53c96 commit 631667a

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

init.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ vim.g.have_nerd_font = true
9999
-- For more options, you can see `:help option-list`
100100

101101
-- Make line numbers default
102-
--vim.opt.number = true
102+
vim.opt.number = true
103103
-- You can also add relative line numbers, to help with jumping.
104104
-- Experiment for yourself to see if you like it!
105105
vim.opt.relativenumber = true
@@ -163,7 +163,9 @@ vim.opt.scrolloff = 10
163163
-- See `:help hlsearch`
164164
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
165165

166+
-- CUSTOM KEYMAPS MOVE TO SEPERATE FILE PLEASE!!!!!
166167
vim.keymap.set('i', 'kj', '<Esc>')
168+
vim.keymap.set('n', '-', '<Cmd>Oil<CR>', { desc = 'Open Parent Directory' })
167169

168170
-- Diagnostic keymaps
169171
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
@@ -937,17 +939,17 @@ require('lazy').setup({
937939
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
938940
--
939941
-- require 'kickstart.plugins.debug',
940-
-- require 'kickstart.plugins.indent_line',
942+
require 'kickstart.plugins.indent_line',
941943
-- require 'kickstart.plugins.lint',
942-
-- require 'kickstart.plugins.autopairs',
944+
require 'kickstart.plugins.autopairs',
943945
-- require 'kickstart.plugins.neo-tree',
944-
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
946+
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
945947

946948
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
947949
-- This is the easiest way to modularize your config.
948950
--
949951
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
950-
-- { import = 'custom.plugins' },
952+
{ import = 'custom.plugins' },
951953
--
952954
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
953955
-- Or use telescope!

lua/custom/plugins/init.lua

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,18 @@
22
-- I promise not to create any merge conflicts in this directory :)
33
--
44
-- See the kickstart.nvim README for more information
5-
return {}
5+
return {
6+
{
7+
'stevearc/oil.nvim',
8+
opts = {},
9+
dependencies = { { 'echasnovski/mini.icons', opts = {} } },
10+
config = function()
11+
require('oil').setup {
12+
default_file_explorer = true,
13+
view_options = {
14+
show_hidden = true,
15+
},
16+
}
17+
end,
18+
},
19+
}

0 commit comments

Comments
 (0)