plugin to quickly store ideas with exact place in a file
Plug 'nagy135/capture-nvim'
Optionally for fancy gui prompt
Plug 'MunifTanjim/nui.nvim'
- leader X - create new todo
- leader J - jump to file (improved gF that jumps to column as well as line)
both binds have "shift modifier" ... so, leader, shift+x
Put these lines in your init.lua
or inside lua block in .vimrc
.
require("capture").setup({
location = "~/todo.md",
project_root_todo = false
})
Combined place to store captures.
Controls behavior where todo.md
is stored in root of git repository/
Simply define binds you want with provided lua functions
nnoremap <leader>X :lua capture_module.create_todo()<CR>
nnoremap <leader>J :lua capture_module.jump_to_file_with_column()<CR>
I am using this plugin for my own personal use and I like its minimal nature. For more features and more "emacs capture" feel, you might wanna try orgmode.nvim
- check if inside git repository (now nvim crashes instead)
- make higher level headers in combined root todo list