diff --git a/init.lua b/init.lua index ee8fbc99..1a200e78 100644 --- a/init.lua +++ b/init.lua @@ -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 diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua new file mode 100644 index 00000000..c6eb8ccc --- /dev/null +++ b/lua/custom/plugins/oil.lua @@ -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', '-', 'Oil', { desc = 'Open parent directory' }) + vim.keymap.set('n', '-', require('oil').toggle_float) + end, +}