-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add lsp workspace commands to open daily notes #85
Conversation
Thank you! |
this is developing nicely! |
running there is also
that fuzzydate lib is really special |
Right now we can do
but cannot provide a default command for entering the jump arguments. A dedicated plugin would be so helpful for this; right now, the user will have to modify their on_attach to enable this (which we can provide snippets for). Either we make our own, or continue the developments in #65 (or both?). This would be helpful for the other non-ideal nvim-cmp and capabilities configuration. I think "both" is the way to go: #95 |
With this snippet, users can open daily notes with natural language if client.name == "markdown_oxide" then
vim.api.nvim_create_user_command(
"Daily",
function(args)
local input = args.args
vim.lsp.buf.execute_command({command="jump", arguments={input}})
end,
{desc = 'Open daily note', nargs = "*"}
)
end |
Let me know what you think and we'll merge right in |
I wanted to get it closed 😄 We can talk more on the main issue |
close #99