This missed the fact that there's a better than keyword completion built in in to vim / vim-lsp. That is the omnifunc completion. set omnifunc=v:lua.vim.lsp.omnifunc The completion triggers with in insert mode, when buffer has a language server with completion support attached.
Thanks a lot for the great much needed vedios. just a tip, in the packer setup, we can pass use to the function itself as it says in the documentation and get rid of the warning
Thank you for the amazing video! I have been wanting to move to LSP + Treesitter for a while now, but have not been able to efficiently get it to work without spending hours on it, so I always revert to my old ways. Thank you!!
When I try to include “ensure_installed = maintained” in the treesitter config I get an error saying that “parser not available for language maintained”. I don’t know if they changed something but it doesn’t seem like that is an option anymore
Check out my videos on vimwiki and task warrior integration. Those were some of my first videos and I was just testing out this TH-cam thing but if there’s interest I can do another productivity video that’s more streamlined.
is it just me or some colorschemes arent fully ported to tree sitter ? I've found the syntax hilighting to be kind of hit or miss. even though I have the exact same config as the docs
Pretty good video although you configure Lua autocompletion manually while using lsp installer that iterates over servers. I think it would make more sense to include autocompletion setup in lsp installer init loop
Fantastic video! I have been trying to get a good c# enviro setup. Maybe starting from scratch with your vids may help. Thanks for putting these together.
First of all thanks a lot for these series of videos, was very helpful! The setup was seamless for me untill this point of setting up the completions using nvim-cmp, I get this error : "Spawning language server with cmd: `lua-language-server` failed. The language server is either not installed, missing from PATH, or not executable." The lsp is definitely installed(Cause I get diagnostics) .Also completions still seem to work despite the error. The nvim-lsp-installer page[setup section] talks about how the servers are not installed in the path and for the lsp client to detect the server, you have to mention a cmd property in the setup part along with the path to the server. I also tried adding the lua-server directly to the path and both methods were able to fix the above error, but then the 'global vim is undefined' pops up only at this place "vim.lsp.protocol". Did I mess up somewhere? How did you get it work without having to do anything else? Really appreciate the help!
It's possible that the lua language server did not install properly. By default this should install in ~/.local/share/nvim/lsp_servers/sumneko_lua/extension/server/bin/lua-language-server. When you run :LspInfo on a lua file, it should tell you where it's searching for the lua language server. Then you can check it exists there.
I have it working right now. Working on a followup video about that (using ccls) and I'll attach a github.io link where you can see how I configured it. I don't actually keep a single set of dots. The channel means I'm always testing things out and making changes all over the place and it's often broken until I can fix things so I tend not to share a single dotfiles repo but snippets per video.
@@kandodev Thanks for the response. It's working well enough for me too right now but I'm always curious to see other people's C++ configurations. Looking forward to the video!
With nvim-cmp all of a sudden my command line completions stopped working until I removed the part of the config that starts with cmd.line.setup. He warns about this in the config and pointed this out to someone with the same issue I had. Nice video!
Wow! I spent an embarrassing amount of time trying to configure lsp's. Great , simple yet highly effective tutorial. Thank you!
This missed the fact that there's a better than keyword completion built in in to vim / vim-lsp.
That is the omnifunc completion.
set omnifunc=v:lua.vim.lsp.omnifunc
The completion triggers with in insert mode, when buffer has a language server with completion support attached.
Thanks a lot for the great much needed vedios. just a tip, in the packer setup, we can pass use to the function itself as it says in the documentation and get rid of the warning
this is a TH-cam gem. Liked, subbed, and I’m staying tuned for the C++ tutorial.
Man your channel is gold! Super eager for the c++ config vid you put out next using lsp! :D
Excellent tutorial, really well structured! Best tutorial I've seen yet on configuring LSP and Treesitter for Neovim.
Thank you for the amazing video! I have been wanting to move to LSP + Treesitter for a while now, but have not been able to efficiently get it to work without spending hours on it, so I always revert to my old ways. Thank you!!
Simple walkthrough. Good Job!
Great video! Looking forward to your C++ video!
Excellent video! I did not know about lsp-installer. Thank you and looking forward to future videos!
When I try to include “ensure_installed = maintained” in the treesitter config I get an error saying that “parser not available for language maintained”. I don’t know if they changed something but it doesn’t seem like that is an option anymore
Works like a charm) Thank you!
These are so helpful! Subscribed and looking forward to whatever you choose to make next.
Vim and Neovim both handle and as not equivalent. does not trigger all the events that does, since the wierdness when leaving insert mode.
for some reason whenever I use nvim cmp and try to open a new buffer it spawns a random number of empty buffers, which are also inaccesible
Fantastic video, really explained these concepts in a clear and concise manner. Would be good to provide links in the video description to your repo.
Amazing work! Looking forward to the webdev video for this!
The option of maintained is not working anymore in treesitter. The languages have to be specified now like: ensure_installed = {'python', 'cpp'}
How about a video about some productivity tools (If you use them)? nvim-orgmode etc.
Check out my videos on vimwiki and task warrior integration. Those were some of my first videos and I was just testing out this TH-cam thing but if there’s interest I can do another productivity video that’s more streamlined.
Amazing!
is it just me or some colorschemes arent fully ported to tree sitter ? I've found the syntax hilighting to be kind of hit or miss. even though I have the exact same config as the docs
Most color schemes just work but there are some that have issues. Some of the newer ones explicitly call out treesitter support as well.
Pretty good video although you configure Lua autocompletion manually while using lsp installer that iterates over servers. I think it would make more sense to include autocompletion setup in lsp installer init loop
Great video really helpful.
Fantastic video! I have been trying to get a good c# enviro setup. Maybe starting from scratch with your vids may help. Thanks for putting these together.
Nice video, do you still plan to make a video on C++? If so, do you get added values over coc config?
Hey there! What's the font you use in your editor?
It's Dejavu Sans Mono
@@kandodev Thank you!
First of all thanks a lot for these series of videos, was very helpful! The setup was seamless for me untill this point of setting up the completions using nvim-cmp, I get this error :
"Spawning language server with cmd: `lua-language-server` failed. The language server is either not installed, missing from PATH, or not executable." The lsp is definitely installed(Cause I get diagnostics) .Also completions still seem to work despite the error.
The nvim-lsp-installer page[setup section] talks about how the servers are not installed in the path and for the lsp client to detect the server, you have to mention a cmd property in the setup part along with the path to the server. I also tried adding the lua-server directly to the path and both methods were able to fix the above error, but then the 'global vim is undefined' pops up only at this place "vim.lsp.protocol".
Did I mess up somewhere? How did you get it work without having to do anything else? Really appreciate the help!
It's possible that the lua language server did not install properly. By default this should install in ~/.local/share/nvim/lsp_servers/sumneko_lua/extension/server/bin/lua-language-server. When you run :LspInfo on a lua file, it should tell you where it's searching for the lua language server. Then you can check it exists there.
same here
@@kandodev Same situation here
Thanks for sharing!
what is your DE?
Is it true that nvim-cmp doesn't offer completions from OTHER buffers?
answer myself: Not true!
Can I find you dotfiles somewhere? I'm curious if you've setup nvim lsp with clangd
I have it working right now. Working on a followup video about that (using ccls) and I'll attach a github.io link where you can see how I configured it. I don't actually keep a single set of dots. The channel means I'm always testing things out and making changes all over the place and it's often broken until I can fix things so I tend not to share a single dotfiles repo but snippets per video.
@@kandodev Thanks for the response. It's working well enough for me too right now but I'm always curious to see other people's C++ configurations. Looking forward to the video!
For me, nvim-compe was way faster and easy to use than nvim-cmp. I don't know why they deprecated the project ☹️
Yeah I thought it was a lot nicer too 😞
this is fireship, right?
hah I wish.
With nvim-cmp all of a sudden my command line completions stopped working until I removed the part of the config that starts with cmd.line.setup.
He warns about this in the config and pointed this out to someone with the same issue I had.
Nice video!
Thanks for mentioning that!
I love you