telekasten.nvim icon indicating copy to clipboard operation
telekasten.nvim copied to clipboard

[FR] LSP Integration

Open cgardner opened this issue 3 years ago • 10 comments

Please confirm

  • [x] I am running the latest version of this plugin

Is your feature request related to a problem? Please describe. When working with notes using telekasten, I need to remember exactly how I spelled all of my tags and notes

Describe the solution you'd like LSP integration. The ability to auto complete tags and notes for linking

Describe alternatives you've considered The built in insert_link command works, but it would be nice to enter [[thi and be able to suggest notes that start with thi

Additional context Add any other context or screenshots about the feature request here.

cgardner avatar Feb 24 '22 06:02 cgardner

That would involve the creation af an whole new LSP right? It seems pretty intense. I really would like to learn how to build something like that.

reisnobre avatar Feb 24 '22 11:02 reisnobre

That would involve the creation af an whole new LSP right? It seems pretty intense.

Nope, not with jose-elias-alvarez/null-ls.nvim being a thing. there is a completion support, also hovers, also code actions, 😆 @jose-elias-alvarez you rock!

kkharji avatar Feb 24 '22 12:02 kkharji

True true, I use it everyday as part of LunarVim/LunarVim. It's so seamless that I even forgot tha it could be used like that.

reisnobre avatar Feb 24 '22 13:02 reisnobre

This would be amazing.

zalegrala avatar Feb 24 '22 14:02 zalegrala

This is aleady mentionned in the BACKLOG

LSP support was also disscussed in #23

lambtho12 avatar Mar 02 '22 17:03 lambtho12

@lambtho12 I've paged through the backlog and #23 and unsure if support for this feature exists yet. Please let me know if completion support for tags exists and if there's a Telekasten command for it. Thanks again for all your work on this project!

andy4thehuynh avatar Nov 17 '22 20:11 andy4thehuynh

@andy4thehuynh There is currently no auto-completion, nor LSP in telekasten. @renerocksai and myself are quite busy at the moment so the development on telekasten has been rather slowed down these lasts months.

LSP is a major chunk of work. I do not know when we will start working on that. That being said, I still maintain actively the project and review/merge PRs. If you (or anyone else) want to start working on that, I will be more than happy to review it!

The only current implementation of tags is with show_tags. You can then use the pickers actions <C-y> to yank the tag or <C-i> to insert the tag.

lambtho12 avatar Nov 18 '22 09:11 lambtho12

You can use marksman. This gives autocompletion for links navigation to links and preview of links. Adding autocompletion for tags in marksman would be relatively easy.

Another avenue could be adding a source to cmp

Hover

image

Link completion

image

GordianDziwis avatar Nov 23 '22 08:11 GordianDziwis

This is also implemented in another similar nvim plugin released under Apache 2.0:

https://github.com/epwalsh/obsidian.nvim/blob/main/lua/cmp_obsidian.lua

thw26 avatar May 18 '23 07:05 thw26

Since we are on the topic, another plugin that is very nice for markdown files is https://github.com/dkarter/bullets.vim I like to use this one with marksman lsp and it gives a very automated typing experience.

Sleepful avatar Jul 28 '23 07:07 Sleepful