A short guide for coding Stata in Neovim
Not sure if it is of interest to anyone, as my impression is that Stata coders in Neovim are very few, but I will post this anyway given that I spent some (hobby) time to do this. I feel like I have a very nice setup for Stata in Neovim on Linux by now and this could be useful to someone. This should work also in Windows or MacOS, but I have not tried.
LSP for Stata with formatting, codestyle checking, autocompletion, documentation, etc.:
https://github.com/euglevi/stata-language-server
This is heavily indebted to a previous implementation for VSCode still available here: https://github.com/BlackHart98/stata-language-server
Stata variables autocompletion in Neovim
A source for blink.cmp that does something very special. When you point it to a dataset, it will include the variable names of that dataset in your autocompletion suggestions in blink.cmp:
https://github.com/euglevi/blink-stata
Of course, to complete the setup of Stata into Neovim, you also need to install a plugin for syntax highlighting. I use my own fork of stata-vim by poliquin, which is available here:
https://github.com/euglevi/stata-vim
Finally, if you use Neovim you are probably already aware that there are several ways to run your code from within Neovim. I am pretty sure that there is a way to send your code directly to an open instance of Stata. I use a different approach, which is specific of Linux. I use Kitty terminal, I have a keybinding that starts a Kitty split with console Stata to the right of Neovim and send code to that split using the vim-slime plugin (which has the benefit that it takes into account Stata comments). Another option is to use the Neovim embedded terminal.