Skip to content

Commit

Permalink
feat: add daily note commands for markdown-oxide (#3164)
Browse files Browse the repository at this point in the history
* feat: add daily note commands for markdown-oxide

* fix: update description

* fix: syntax

* fix: formatting

* fix: formatting

* fix: formatting
  • Loading branch information
Feel-ix-343 authored May 20, 2024
1 parent 7aa0545 commit 9bda20f
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions lua/lspconfig/server_configurations/markdown_oxide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,32 @@ return {
description = [[
https://github.com/Feel-ix-343/markdown-oxide
Let's record your consciousness! Bring your own text editor!
Implemented as a language server compatible with any text
editor, Markdown-Oxide is attempting to be the best PKM
system for software enthusiasts.
Editor Agnostic PKM: you bring the text editor and we
bring the PKM.
Check the readme to see how to properly setup nvim-cmp.
Inspired by and compatible with Obsidian.
Check the readme to see how to properly setup.
]],
},
commands = {
Today = {
function()
vim.lsp.buf.execute_command { command = 'jump', arguments = { 'today' } }
end,
description = "Open today's daily note",
},
Tomorrow = {
function()
vim.lsp.buf.execute_command { command = 'jump', arguments = { 'tomorrow' } }
end,
description = "Open tomorrow's daily note",
},
Yesterday = {
function()
vim.lsp.buf.execute_command { command = 'jump', arguments = { 'yesterday' } }
end,
description = "Open yesterday's daily note",
},
},
}

0 comments on commit 9bda20f

Please sign in to comment.