Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 881 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 881 Bytes

Jot.nvim

Jot.nvim is a neovim plugin to quickly access your notes from anywhere you are.

jot-demo

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