From e1e896a079eebae3ebcf632394d82959f4065496 Mon Sep 17 00:00:00 2001 From: arauto Date: Wed, 25 Dec 2024 15:19:56 -0300 Subject: [PATCH 1/2] Habilitado o plugin oil --- lua/custom/plugins/oil.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lua/custom/plugins/oil.lua 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, +} From 4423f8a2299627114ffc730169bd4183be551e58 Mon Sep 17 00:00:00 2001 From: arauto Date: Wed, 25 Dec 2024 15:23:43 -0300 Subject: [PATCH 2/2] Habilitado plugins customizados MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configuração de tabulação. Habilitado o uso de Nerd fonts. Habilitado o uso de plugins customizados. --- init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index ea86b792..f135e6e9 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 @@ -929,7 +934,7 @@ require('lazy').setup({ -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the