Skip to content

NeoXavier/jot.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jot.nvim

A lightweight Neovim plugin that provides a persistent, toggleable scratchpad for notes written in Markdown. A single keybind opens a floating or split window onto a file that persists across sessions.

Requirements

  • Neovim 0.8+

Installation

Using lazy.nvim:

{
  'NeoXavier/jot.nvim',
  lazy = false,
  config = function()
    require('jot').setup()
  end,
}

Usage

Press <leader>t to toggle the jot window open or closed. The file is saved automatically on close.

You can also call the toggle directly:

require('jot').toggle()

Configuration

All fields are optional. This shows the defaults:

require('jot').setup({
  -- Path to the jot file. Created automatically if it does not exist.
  path = vim.fn.stdpath('data') .. '/jot.md',

  window = {
    style       = 'floating', -- 'floating' | 'left' | 'right'
    width       = 0.8,        -- proportion of editor width (floating only)
    height      = 0.8,        -- proportion of editor height (floating only)
    border      = 'rounded',  -- 'rounded' | 'single' | 'double' | 'none'
    split_width = 0.3,        -- proportion of editor width (split only)
  },

  keymaps = {
    toggle = '<leader>t', -- set to false to disable auto-registration
  },
})

Disable the default keymap

require('jot').setup({
  keymaps = { toggle = false },
})

-- Wire it up yourself
vim.keymap.set('n', '<your-key>', require('jot').toggle)

About

A lightweight Neovim plugin that provides a persistent, toggleable scratchpad for notes written in Markdown. A single keybind opens a floating or split window onto a file that persists across sessions.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages