From 9d8686a0aae0df0a836448433c604e8c70187f65 Mon Sep 17 00:00:00 2001 From: luba Date: Mon, 6 May 2024 05:14:47 -0300 Subject: [PATCH] :tada: Adding oil and telescope now see hidden files --- init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/init.lua b/init.lua index 6f5f7d6a..37a64c29 100644 --- a/init.lua +++ b/init.lua @@ -197,6 +197,9 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- Mapping oil to dash +vim.keymap.set('n', '-', 'Oil --float', { desc = 'Open parent directory' }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -349,6 +352,9 @@ require('lazy').setup({ require('telescope.themes').get_dropdown(), }, }, + pickers = { + find_files = { hidden = true }, + }, } -- Enable Telescope extensions if they are installed @@ -898,6 +904,7 @@ require('lazy').setup({ config = function() require('image-paste').setup { imgur_client_id = 'ff4ff5566f179e3', + imgur_client_id = '9e175315e657a12', paste_script = [[xclip -selection clipboard -t image/png -o]], } end, @@ -912,6 +919,19 @@ require('lazy').setup({ }, }, }, + { + 'stevearc/oil.nvim', + opts = {}, + -- Optional dependencies + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + require('oil').setup { + view_options = { + show_hidden = true, + }, + } + end, + }, -- { 'lukas-reineke/indent-blankline.nvim', main = 'ibl', opts = {} },