Merge branch 'Oil'

This commit is contained in:
arauto 2024-12-25 15:28:04 -03:00
commit 62b97aa874
2 changed files with 22 additions and 1 deletions

View File

@ -90,8 +90,12 @@ P.S. You can delete this when you're done too. It's your config now! :)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = false
vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.opt`
@ -100,6 +104,7 @@ vim.g.have_nerd_font = false
-- Make line numbers default
vim.opt.number = true
vim.opt.relativenumber = 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

View File

@ -0,0 +1,16 @@
return {
'stevearc/oil.nvim',
-- dependencies = { { "echasnovski/mini.icons", opts = {} } },
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons
config = function()
require('oil').setup {
columns = { 'icon' },
view_options = {
show_hidden = true,
},
}
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
vim.keymap.set('n', '<space>-', require('oil').toggle_float)
end,
}