mirror of
https://github.com/hisbaan/jot.nvim.git
synced 2026-06-09 20:26:05 -04:00
A simple plugin to open your notes easily within a running neovim instance
- Lua 100%
| lua/jot | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Jot.nvim
Jot.nvim is a neovim plugin to quickly access your notes from anywhere you are.
Installation
Using packer.nvim
use { 'hisbaan/jot.nvim', requires = 'nvim-lua/plenary.nvim' }
Setup
Put the following in your init.lua to setup. The options displayed are the defaults and can be changed.
-- init.lua
require('jot').setup({
search_dir = "~/Documents/",
search_depth = 5,
hide_search_dir = false,
post_open_hook = function() end,
})
To call the plugin run the Jot command. Alternatively, you can use require('jot').search().
To set this to a keybinding, you can use nvim_set_keymap
-- init.lua
vim.api.nvim_set_keymap('n', '<leader>j', '<Cmd>Jot<CR>', { noremap = true, silent = true })
