From e00fc002a6441fa3741d1f705337efbbd8850744 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Mon, 9 Dec 2024 10:44:18 -0300 Subject: Cambios varios. --- lua/plugins/note.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lua/plugins/note.lua (limited to 'lua/plugins/note.lua') 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 = { + { + "mn", + "MyNote", + desc = "Open MyNote", + }, + { + "mg", + "MyNote global", + 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, + }, + }, + }, +} -- cgit v1.2.3