Skip to content

Instantly share code, notes, and snippets.

@jcdiv47
Created June 13, 2024 02:04
Show Gist options
  • Save jcdiv47/359be97b4f3b9972706614d6d391ee9b to your computer and use it in GitHub Desktop.
Save jcdiv47/359be97b4f3b9972706614d6d391ee9b to your computer and use it in GitHub Desktop.
Neovim plugins

floating filesystem window at current working directory

keys = {
  {
    '\\',
    ':Neotree action=focus source=filesystem position=left toggle=true<CR>',
  },
  {
    '|',
    function()
      local function buffer_dir()
        return vim.fn.expand '%:p:h'
      end
      require('neo-tree.command').execute {
        action = 'focus',
        source = 'filesystem',
        position = 'left',
        toggle = true,
        dir = buffer_dir(),
      }
    end,
  }  
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment