Neovim plugin for taking quick notes
Repo-specific notepad (if in git).
Global notepad.
Use your favorite package manager to install notepad.nvim, e.g:
{
"carloscalla/notepad.nvim",
opts = {}
}
Note: You need to call the setup function to initialize the plugin. Lazy.nvim does
this with opts = {} in the example above.
require("notepad").setup({
-- Your configuration here
})
require("notepad").setup({
position = "bottom", -- 'top', 'left', 'right', 'bottom'
split_size = nil, -- Size of the split (percentage or absolute size). nil uses default split behavior
})
-- Top horizontal split
require('notepad').setup({ position = 'top', split_size = 15 })
-- Left vertical split (30% of screen width)
require('notepad').setup({ position = 'left', split_size = 0.3 })
-- Right vertical split (50 columns)
require('notepad').setup({ position = 'right', split_size = 50 })
-- Bottom horizontal split (default)
require('notepad').setup({ position = 'bottom', split_size = 0.25 })
Use the following commands:
:Notepad " Opens repo-specific notepad (if in git) or global notepad
:Notepad global " Opens global notepad
Or with Lua:
-- Opens repo-specific notepad (if in git) or global notepad
require("notepad").open()
-- Opens global notepad
require("notepad").open_global()