diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
| commit | b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch) | |
| tree | 366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/markdown_oxide.lua | |
Nixos
Diffstat (limited to 'nvim/lsp/markdown_oxide.lua')
| -rwxr-xr-x | nvim/lsp/markdown_oxide.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nvim/lsp/markdown_oxide.lua b/nvim/lsp/markdown_oxide.lua new file mode 100755 index 0000000..8f2697b --- /dev/null +++ b/nvim/lsp/markdown_oxide.lua @@ -0,0 +1,32 @@ +---@brief +--- +--- https://github.com/Feel-ix-343/markdown-oxide +--- +--- Editor Agnostic PKM: you bring the text editor and we +--- bring the PKM. +--- +--- Inspired by and compatible with Obsidian. +--- +--- Check the readme to see how to properly setup. +return { + root_markers = { '.git', '.obsidian', '.moxide.toml' }, + filetypes = { 'markdown' }, + cmd = { 'markdown-oxide' }, + on_attach = function(_, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspToday', function() + vim.lsp.buf.execute_command { command = 'jump', arguments = { 'today' } } + end, { + desc = "Open today's daily note", + }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspTomorrow', function() + vim.lsp.buf.execute_command { command = 'jump', arguments = { 'tomorrow' } } + end, { + desc = "Open tomorrow's daily note", + }) + vim.api.nvim_buf_create_user_command(bufnr, 'LspYesterday', function() + vim.lsp.buf.execute_command { command = 'jump', arguments = { 'yesterday' } } + end, { + desc = "Open yesterday's daily note", + }) + end, +} |
