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 = {} },