Skip to content

Simple nvim plugin for attaching notes to buffers or create global ones during a session.

License

Notifications You must be signed in to change notification settings

genzyy/weaver.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✏️ weaver.nvim

screenshot

Simple note taking app for neovim that can be attached to buffers, or can be made global.

Latest release

v1.0.0 Add support for destroying weaver either global or the one attached to active buffer.

:DestroyWeaver: Destroy weaver that is currently attached to active buffer, or pass g to destroy global weaver.

About

This is a simple note taking plugin that creates temporary buffers that can be attached to separate buffers or create a single global buffer. Initially, I designed the plugin for myself, but I will be spending some time to update and modify it for others, refer TODO section for more.

Install

Rquirements:

  • neovim >= 0.7.0
  • plenary.nvim (you can add it as a dependency while installing)

Using packer.nvim

use {
  "genzyy/weaver.nvim",
  requires = {"nvim-lua/plenary.nvim"},
  config = true,
}

Using lazy.nvim

return {
    "genzyy/weaver.nvim",
    dependencies = {
   "nvim-lua/plenary.nvim"
    },
    config = function()
        require("weaver").setup()
    end,
}

Using LazyVim

return {
  "genzyy/weaver.nvim",
  dependencies = {
   "nvim-lua/plenary.nvim"
  },
  config = true,
}

Usage and commands

  • :Weaver: Open a weaver attached to current buffer. This will remember the contents as long as the session is maintained and cannot be used in any other buffer.

  • :CloseWeaver: Close weaver that is attached to current buffer.

  • :Weaver g: Same as first command but with "g" passed as argument. This will create a global weaver that is not attached to any current nvim buffers and can be opened with any buffer in the session.

  • :CloseWeaver g: Close global weaver.

  • :ToggleWeaver: A toggle command to open/close weaver. Pass g as argument to toggle global weaver.

  • :DestroyWeaver: Destroy weaver that is currently attached to active buffer, or pass g to destroy global weaver.

ToDo

  • Make UI better (maybe custom popup?)
  • Better code quality
  • Formatting and highlighting for weaver contents (markdown support?)

About

Simple nvim plugin for attaching notes to buffers or create global ones during a session.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages