utouto97 / memo.nvim

Simple memo plugin for neovim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

memo.nvim

memo.nvim is a very simple memo plugin for neovim.

This plugin provides

  • require('memo').new (lua) or :Memo (vim)
    • Open a markdown file whose name is like timestmap.
  • Telescope memo
    • Find memo using fuzzy finder (Telescope) and open it.
    • <C-a> to create new memo
    • <C-d> to delete memo under the cursor
    • <C-r> to rename memo under the cursor
    • <C-c> to duplicate memo under the cursor
  • other lua functions like copy, remove and rename

Requirements

Setup

-- with Packer
use {
 'utouto97/memo.nvim',
  requires = {
    'nvim-telescope/telescope.nvim',
    'nvim-lua/plenary.nvim'
  },
  config = function()
    require('memo').setup(
      memo_dir = '~/.memo'
    )
  end
}

If you want to change memo_dir where your memo are placed, you can call require('memo').setup() and change memo_dir in its options.

optional
Keymaps like this would help you to use this plugin.

vim.keymap.set('n', '<Leader>mn', '<cmd>Memo<cr>')
vim.keymap.set('n', '<Leader>mm', '<cmd>Telescope memo<cr>')

About

Simple memo plugin for neovim.

License:MIT License


Languages

Language:Lua 100.0%