Jot.nvim is a neovim plugin to quickly access your notes from anywhere you are.
Using packer.nvim
use { 'hisbaan/jot.nvim', requires = 'nvim-lua/plenary.nvim' }
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 })