diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2025-08-04 07:45:42 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | 23d53b5d7bc2f31eed672c0a8d26dc608fb6d0ba (patch) | |
| tree | 7b23cd20340dd0984bb1a9616744ef81c69d3b4c /dot_config/nvim_new/lsp/markdown_oxide.lua | |
| parent | 1227ae992f4494d6a3d82d70d0bb9cb01dd50847 (diff) | |
feat(nvim) slim down new config
Diffstat (limited to 'dot_config/nvim_new/lsp/markdown_oxide.lua')
| -rw-r--r-- | dot_config/nvim_new/lsp/markdown_oxide.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dot_config/nvim_new/lsp/markdown_oxide.lua b/dot_config/nvim_new/lsp/markdown_oxide.lua new file mode 100644 index 0000000..8f2697b --- /dev/null +++ b/dot_config/nvim_new/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, +} |
