summary refs log tree commit diff
path: root/.vim/lua/internal/plugins/oil.lua
blob: 401fe8b110b8a16c319aadff098ca9dab24221c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
return {
  {
    'stevearc/oil.nvim',
    lazy = false,
    opts = {
      keymaps = {
        ['gt'] = {
          function()
            local cwd = require('oil').get_current_dir()
            vim.cmd('silent !footclient --no-wait -D ' .. cwd)
          end,
          nowait = true,
          desc = 'Open current directory with foot',
        },
      },
    },
    keys = {
      { mode = 'n', '-', '<cmd>Oil<cr>', desc = 'oil: open parent directory' },
    },
  },
}