Skip to content

Commit 9bda20f

Browse files
authored
feat: add daily note commands for markdown-oxide (#3164)
* feat: add daily note commands for markdown-oxide * fix: update description * fix: syntax * fix: formatting * fix: formatting * fix: formatting
1 parent 7aa0545 commit 9bda20f

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

lua/lspconfig/server_configurations/markdown_oxide.lua

+25-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,32 @@ return {
1111
description = [[
1212
https://github.com/Feel-ix-343/markdown-oxide
1313
14-
Let's record your consciousness! Bring your own text editor!
15-
Implemented as a language server compatible with any text
16-
editor, Markdown-Oxide is attempting to be the best PKM
17-
system for software enthusiasts.
14+
Editor Agnostic PKM: you bring the text editor and we
15+
bring the PKM.
1816
19-
Check the readme to see how to properly setup nvim-cmp.
17+
Inspired by and compatible with Obsidian.
18+
19+
Check the readme to see how to properly setup.
2020
]],
2121
},
22+
commands = {
23+
Today = {
24+
function()
25+
vim.lsp.buf.execute_command { command = 'jump', arguments = { 'today' } }
26+
end,
27+
description = "Open today's daily note",
28+
},
29+
Tomorrow = {
30+
function()
31+
vim.lsp.buf.execute_command { command = 'jump', arguments = { 'tomorrow' } }
32+
end,
33+
description = "Open tomorrow's daily note",
34+
},
35+
Yesterday = {
36+
function()
37+
vim.lsp.buf.execute_command { command = 'jump', arguments = { 'yesterday' } }
38+
end,
39+
description = "Open yesterday's daily note",
40+
},
41+
},
2242
}

0 commit comments

Comments
 (0)