r_vim – Telegram
r_vim
72 subscribers
1.24K photos
52 videos
1 file
19.5K links
Download Telegram
vim + ollama + oh-my-zsh + alacritty + dotfiles better than Cursor xD

vim

Is that better than Cursor or?


Dotfiles: https://github.com/the-homeless-god/dotfiles

Features:

\- ollama tab suggestions & chat panel

\- right panel

\- search via ripgrep + fzf

https://preview.redd.it/h3dljqj0e15g1.png?width=1920&format=png&auto=webp&s=5980c8106de8f9208fbaa8e8655cd0d88ced358c

\- lf for folder navigation

\- transparency by alacritty

https://preview.redd.it/jv9lqjoge15g1.png?width=1920&format=png&auto=webp&s=a02cf11546b200b815c30834c20c1084e8a6a93c

\- right click context menu

https://preview.redd.it/9bx8xx3me15g1.png?width=1920&format=png&auto=webp&s=0550a786df742a0db5a1a24ea706c57e5bf3a78f

\- .vimrc segregated by sections to edit, a lot of stuff commented across years :D


and a lot of other plugins

CI:

\- docker building with publishing to registry

\- noscripts to install everything with interactive way & brew

./install-tools.sh --interactive

https://preview.redd.it/wq005lp3f15g1.png?width=1920&format=png&auto=webp&s=ebfb27d24a8d025865021004e647321e9d58957f

I think later will share distribution using another OS, here MacOS as example, but I think someone searched for it.

https://redd.it/1pddj26
@r_vim
Pointers to making Universal Ctags work with the latest versions of Scheme (r6rs and r7rs)

If there is a better place to post this, please let me know, I am not super familiar with ctags, and I did see some mentions of using it here.

I used it with some older styles of scheme and it seemed to work just fine. In these versions, you either just load a file, or if they have a module system it just has a declaration at the top, and then the procedures are defined at that same top level, like:

(module (example)
(import ...)
(export ...))
(define (proc n) ...)

and ctags finds proc here, but in the r6 and r7 style the procedures are inside the library definition like:

(library (example)
(export ...)
(import ...)
(define (proc n) ...))

and ctags is not finding the procedures

https://redd.it/1peox0s
@r_vim
How to take yegappan/lsp for a quick spin (Windows / Vim9Script / Pyright)

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 with

npm 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
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
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
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
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
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