How to take yegappan/lsp for a quick spin (Windows / Vim9Script / Pyright)
I have been using
Using minpac and Vim9Script, I had to use a slightly different config setup.
I also got thrown by the
### Short-term reactions
Hard to say much, because Python language servers don't provide a ton of features: no snippets or semantic highlighting.
The colorscheme chaos is another downside, but I haven't tried to isolate that problem. Some colorschemes work well, others don't, but the conflict might be due to something else in my config.
I'll keep it for a few weeks or months and get a better idea which I prefer.
https://redd.it/1phe0j6
@r_vim
I have been using
vim-lsp for few years. I wanted to take yegappan/lsp for a test drive, but hit a few speed bumps. Posting notes here so you can do this in 5 minutes instead of half an hour if you choose to do the same.Using minpac and Vim9Script, I had to use a slightly different config setup.
var lspServers = [
{
name: 'pyright',
filetype: ['python'],
path: 'pyright-langserver',
args: ['--stdio'],
workspaceConfig: {
python: {
pythonPath: expand('$HOME/AppData/Local/Programs/Python/Python312/python.exe')
}
},
}
]
autocmd User LspSetup lsp#lsp#AddServer(lspServers)
var lspOptions = {
highlightDiagInline: false
}
lsp#options#OptionsSet(lspOptions)
highlightDiagInline: false does what you'd think: removes highlighting over the specific symbols that are causing a problem. That is unfortunately necessary for me, because the highlighting clobbered habamax and sorbet, my preferred dark colorschemes.I also got thrown by the
path argument to lspServers, assuming I could link to the servers vim-lsp downloaded to ~\AppData\Local\vim-lsp-settings\servers. That isn't how it works. I had to install pyright-langserver withnpm install -g pyright
### Short-term reactions
Hard to say much, because Python language servers don't provide a ton of features: no snippets or semantic highlighting.
yegappan/lsp is definitely snappier, but has the Pyright-specific downside of not displaying error codes. vim-lsp :DocumentDiagnostics reveals Pyright codes like reportPrivateUsage so you can silence them. yegappan/lsp :LspDiag show shows Pyright error messages but does not reveal codes.The colorscheme chaos is another downside, but I haven't tried to isolate that problem. Some colorschemes work well, others don't, but the conflict might be due to something else in my config.
I'll keep it for a few weeks or months and get a better idea which I prefer.
https://redd.it/1phe0j6
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
How do folks feel about popups vs quickfix / custom buffers?
I'll preface this with a call out of my own personal biases as a gvim / vim user who does not use nvim unless I'm really desperate to try some plugin hotness..
\---
I've played with lazyvim \+ other neovim plugin packs before (kickstart.nvim) and noticed that the plugin writers have fully embraced the UI through popups/other nvim mechanisms to draw directly over the active window.
I'm wondering what yalls thoughts are on the use of popups / toggleable UIs instead vs quickfix / classic custom buffers
I'll share 2 examples of what I've been looking at as inspiration for implementing PoCs of in vim9noscript since I've been surprised by how much modern developers love the IDE feel when transitioning from VSCode to vim as their daily driver.
\----
telescope.nvim
https://preview.redd.it/sosy7v2d4y5g1.png?width=1760&format=png&auto=webp&s=ffa8b5a2f9bb784b87853df9dbae0ad4abe1f495
harpoon
https://preview.redd.it/zvbtw7ku4y5g1.png?width=998&format=png&auto=webp&s=2b463feb3a3f31e781720a0533747ec0ae05e800
https://redd.it/1ph7wuy
@r_vim
I'll preface this with a call out of my own personal biases as a gvim / vim user who does not use nvim unless I'm really desperate to try some plugin hotness..
\---
I've played with lazyvim \+ other neovim plugin packs before (kickstart.nvim) and noticed that the plugin writers have fully embraced the UI through popups/other nvim mechanisms to draw directly over the active window.
I'm wondering what yalls thoughts are on the use of popups / toggleable UIs instead vs quickfix / classic custom buffers
I'll share 2 examples of what I've been looking at as inspiration for implementing PoCs of in vim9noscript since I've been surprised by how much modern developers love the IDE feel when transitioning from VSCode to vim as their daily driver.
\----
telescope.nvim
https://preview.redd.it/sosy7v2d4y5g1.png?width=1760&format=png&auto=webp&s=ffa8b5a2f9bb784b87853df9dbae0ad4abe1f495
harpoon
https://preview.redd.it/zvbtw7ku4y5g1.png?width=998&format=png&auto=webp&s=2b463feb3a3f31e781720a0533747ec0ae05e800
https://redd.it/1ph7wuy
@r_vim
www.lazyvim.org
🚀 Getting Started | LazyVim
LazyVim is a Neovim setup powered by 💤 lazy.nvim
Change the GUI color for gVim
https://preview.redd.it/vq6gl34e516g1.png?width=736&format=png&auto=webp&s=86434cfa2812a99186068d06ef50280975b0227a
Is there anyway I can change the white GUI up here to match my theme? It looks very out of place right now. Thanks!!!
https://redd.it/1phleha
@r_vim
https://preview.redd.it/vq6gl34e516g1.png?width=736&format=png&auto=webp&s=86434cfa2812a99186068d06ef50280975b0227a
Is there anyway I can change the white GUI up here to match my theme? It looks very out of place right now. Thanks!!!
https://redd.it/1phleha
@r_vim
Marks disappear when using auto-formatter
I have encountered a problem in vim/neovim, where autoformatting sometimes (but very often) deletes marks, after the buffer updates. Is there a way to both use autoformatting and marks? I do not use LSP, but have recently taken to like autoformatting, and would rather not lose it.
https://redd.it/1pi7efa
@r_vim
I have encountered a problem in vim/neovim, where autoformatting sometimes (but very often) deletes marks, after the buffer updates. Is there a way to both use autoformatting and marks? I do not use LSP, but have recently taken to like autoformatting, and would rather not lose it.
https://redd.it/1pi7efa
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Default color?
i need the default colorscheme name for the gvim in windows like this one so i can implement it in my macvim
https://preview.redd.it/ijp8yiromd6g1.png?width=892&format=png&auto=webp&s=9f4a6134049931af17b5e6243e8d34f3c0a04cc2
https://redd.it/1pj2a2x
@r_vim
i need the default colorscheme name for the gvim in windows like this one so i can implement it in my macvim
https://preview.redd.it/ijp8yiromd6g1.png?width=892&format=png&auto=webp&s=9f4a6134049931af17b5e6243e8d34f3c0a04cc2
https://redd.it/1pj2a2x
@r_vim
Vim auto indenting weird with rust default style guidelines.
Its not that big of a deal but it's really really bugging me now, and i cant stop thinking about it. As you can see in the video if i remove the comma from the end, it indents fine (and i figured thats what i was doing wrong), but after running cargo fmt to format my code, it adds the comma back, messing up indentation again.
(also i dont know enough vimnoscript to fix the rust indentation file myself, because i already feel that someone will tell me to do that)
It'd be appreciated if someone explained whats wrong/how to fix it, thanks :)
https://reddit.com/link/1pjhzyd/video/y8kmg0p1ng6g1/player
https://redd.it/1pjhzyd
@r_vim
Its not that big of a deal but it's really really bugging me now, and i cant stop thinking about it. As you can see in the video if i remove the comma from the end, it indents fine (and i figured thats what i was doing wrong), but after running cargo fmt to format my code, it adds the comma back, messing up indentation again.
(also i dont know enough vimnoscript to fix the rust indentation file myself, because i already feel that someone will tell me to do that)
It'd be appreciated if someone explained whats wrong/how to fix it, thanks :)
https://reddit.com/link/1pjhzyd/video/y8kmg0p1ng6g1/player
https://redd.it/1pjhzyd
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
veep.vim is an new plugin that's an update to vis.vim
https://github.com/robenkleene/veep.vim
https://redd.it/1pjipyr
@r_vim
https://github.com/robenkleene/veep.vim
https://redd.it/1pjipyr
@r_vim
GitHub
GitHub - robenkleene/veep.vim
Contribute to robenkleene/veep.vim development by creating an account on GitHub.
fzf.vim that does normal mode/insert mode like telescope
in telescope.nvim fuzzy finder you can normally use j/k after <Esc> to traverse files. Then i to search again
i want that behavior in fzf vim however i did not find it
please advise
https://redd.it/1pk2sar
@r_vim
in telescope.nvim fuzzy finder you can normally use j/k after <Esc> to traverse files. Then i to search again
i want that behavior in fzf vim however i did not find it
please advise
https://redd.it/1pk2sar
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Noob question : see the currently edited file in vim ?
Hello,
Do you know of I can see in vim the filename of the currently edited file in vim ?
Thank you very much !
BR
https://redd.it/1pjxgxq
@r_vim
Hello,
Do you know of I can see in vim the filename of the currently edited file in vim ?
Thank you very much !
BR
https://redd.it/1pjxgxq
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Command mode from visual mode
Why is there this string '<,>' at the beginning of the command when switching from visual mode to command mode?
https://redd.it/1plxl2k
@r_vim
Why is there this string '<,>' at the beginning of the command when switching from visual mode to command mode?
https://redd.it/1plxl2k
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
vim9noscript alternatives
i dont want to learn vim9noscript
i know a bit of vimnoscript (before v9) but there is no help pages in vim now for that as everything is converted to vim9 what are my alternatives for this problem are there any languages that compile to vimnoscript??
ive heard about interfaces are they good
https://redd.it/1pmavs4
@r_vim
i dont want to learn vim9noscript
i know a bit of vimnoscript (before v9) but there is no help pages in vim now for that as everything is converted to vim9 what are my alternatives for this problem are there any languages that compile to vimnoscript??
ive heard about interfaces are they good
https://redd.it/1pmavs4
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
Vim makes even more sense in the age of AI
Just a thought for anyone considering moving to Cursor etc.
I've noticed that it's become increasingly easy to create very ad-hoc coding solutions very quickly using tools like claude code. It's now often trivial to automate parts of the development workflow. However, in order to do this you first need a fully programmable text editor, and few environments are more programmable/customizable than Vim. This has been my experience at least.
https://redd.it/1pqeamj
@r_vim
Just a thought for anyone considering moving to Cursor etc.
I've noticed that it's become increasingly easy to create very ad-hoc coding solutions very quickly using tools like claude code. It's now often trivial to automate parts of the development workflow. However, in order to do this you first need a fully programmable text editor, and few environments are more programmable/customizable than Vim. This has been my experience at least.
https://redd.it/1pqeamj
@r_vim
Reddit
From the vim community on Reddit
Explore this post and more from the vim community
auto-index files for clangd language server
https://gist.github.com/Konfekt/2d951b9e07831878b1476133c5f37b52
https://redd.it/1pqqqtp
@r_vim
https://gist.github.com/Konfekt/2d951b9e07831878b1476133c5f37b52
https://redd.it/1pqqqtp
@r_vim
Gist
Automatically generate compile_commands.json for clangd Language Server in Vim; put into ~/.vim/ftplugin/
Automatically generate compile_commands.json for clangd Language Server in Vim; put into ~/.vim/ftplugin/ - c_compdb.vim