carloscalla/notepad.nvim

github github
note-taking
stars 2
issues 0
subscribers 0
forks 0
CREATED

UPDATED


notepad.nvim

Neovim plugin for taking quick notes

Repo-specific notepad (if in git).

Global notepad.

Installation & Setup

Use your favorite package manager to install notepad.nvim, e.g:

Lazy

{
  "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
})

Default Configuration

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
})

Setup examples

-- 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 })

Usage Examples

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()

Inspiration