Skip to content

dpi0/nee.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

nee.nvim

Create new files or unnamed buffers using a simple floating window.

screenshot

Installation

{
  "dpi0/nee.nvim",
  dependencies = { "MunifTanjim/nui.nvim" }, -- Used to create the floating window.
  opts = {
    directory_path = vim.fn.expand("~/notes"),  -- Defaults to CWD, otherwise add your path to save file in.
  },
  keys = {
    {
      "<leader>n",  -- Your keybind.
      function()
        require("nee").new_file()
      end,
      desc = "Create New File",
    },
  },
}

Usage

  • Press the keybind (<leader>n by default) to trigger the prompt.
  • Hit enter with no filename and you'll get an unnamed buffer.
  • Type some filename and it creates a new buffer with the specified path (but does not save it to disk until you manually save).
  • Hit q in normal mode to hide window.

About

Create new buffers in Neovim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages