diff options
Diffstat (limited to 'lsp/markdown_oxide.lua')
| -rw-r--r-- | lsp/markdown_oxide.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lsp/markdown_oxide.lua b/lsp/markdown_oxide.lua index 79b11913..8f2697bf 100644 --- a/lsp/markdown_oxide.lua +++ b/lsp/markdown_oxide.lua @@ -12,18 +12,18 @@ return { root_markers = { '.git', '.obsidian', '.moxide.toml' }, filetypes = { 'markdown' }, cmd = { 'markdown-oxide' }, - on_attach = function() - vim.api.nvim_buf_create_user_command(0, 'LspToday', function() + 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(0, 'LspTomorrow', function() + 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(0, 'LspYesterday', function() + 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", |
