diff options
Diffstat (limited to 'lua/plugins/note.lua')
| -rw-r--r-- | lua/plugins/note.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/plugins/note.lua b/lua/plugins/note.lua new file mode 100644 index 0000000..2728bde --- /dev/null +++ b/lua/plugins/note.lua @@ -0,0 +1,29 @@ +return { + { + "jellydn/my-note.nvim", + dependencies = { "MunifTanjim/nui.nvim" }, + keys = { + { + "<leader>mn", + "<cmd>MyNote<cr>", + desc = "Open MyNote", + }, + { + "<leader>mg", + "<cmd>MyNote global<cr>", + desc = "Open MyNote Global", + }, + }, + opts = { + files = { + -- Using the parent .git folder as the cwd + cwd = function() + local bufPath = vim.api.nvim_buf_get_name(0) + local cwd = require("lspconfig").util.root_pattern(".git")(bufPath) + + return cwd + end, + }, + }, + }, +} |