Skip to content

Commit 62b97aa

Browse files
author
arauto
committed
Merge branch 'Oil'
2 parents de44f49 + 4423f8a commit 62b97aa

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

init.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ P.S. You can delete this when you're done too. It's your config now! :)
9090
vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

93+
vim.opt.tabstop = 2
94+
vim.opt.shiftwidth = 2
95+
vim.opt.expandtab = true
96+
9397
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
98+
vim.g.have_nerd_font = true
9599

96100
-- [[ Setting options ]]
97101
-- See `:help vim.opt`
@@ -100,6 +104,7 @@ vim.g.have_nerd_font = false
100104

101105
-- Make line numbers default
102106
vim.opt.number = true
107+
vim.opt.relativenumber = true
103108
-- You can also add relative line numbers, to help with jumping.
104109
-- Experiment for yourself to see if you like it!
105110
-- vim.opt.relativenumber = true

lua/custom/plugins/oil.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
return {
2+
'stevearc/oil.nvim',
3+
-- dependencies = { { "echasnovski/mini.icons", opts = {} } },
4+
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons
5+
config = function()
6+
require('oil').setup {
7+
columns = { 'icon' },
8+
view_options = {
9+
show_hidden = true,
10+
},
11+
}
12+
13+
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
14+
vim.keymap.set('n', '<space>-', require('oil').toggle_float)
15+
end,
16+
}

0 commit comments

Comments
 (0)