Skip to content

JohanChane/wsnavigator.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wsnavigator.nvim

Why I Built wsnavigator.nvim

I created it to optimize the buffer-switching experience when working with a small number of buffers.

Features

  • Only uses highly accessible keys: f d s a j k l
  • filetree display mode

Installation & Configuration

{
  'JohanChane/wsnavigator.nvim',
  config = function()
    require("wsnavigator").setup({
      split = {
        direction = 'left', -- left, right, above, below. see `:h nvim_open_win()`
        width = 48,
        height = 16,
      },
      max_len_of_buffers = 7,                 -- Do not set this value above `20`, (recommended: `7`).
      cb_for_too_many_buffers = function()    -- Callback function when buffer count exceeds `max_len_of_buffers`
        require("fzf-lua").buffers()          -- Use `fzf-lua` for buffer switching when too many buffers are open.
      end                                     -- Please config your buffer switcher.
    })

    vim.keymap.set("n", "<Leader>f", function()
      require("wsnavigator").toggle_wsn()
    end, { noremap = true })
  end
}

Advance configuration

See ref

Screenshots

About

A switching tool for toggling between a small number of buffers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages