3 ms·
Automatic refactoring etc is still a long way off being good in Vim. But I’ve recently started using a combination of Neovim + treesitter + LSPs, and have foun
by jamespwilliams 5y ago
Automatic refactoring etc is still a long way off being good in Vim.
But I’ve recently started using a combination of Neovim + treesitter + LSPs, and have found it incredibly powerful. Extremely responsive automatic compilation that feels instantaneous, good inline error messages, very good and fast syntax highlighting through treesitter... At what it does, I’d go as far as saying as it achieves more than any other IDEs I’ve tried. But of course, what it does is more limited.
At the moment I rarely even touch a mouse. I work primarily in Vim, with DWM as a window manager and a Vim extension in the browser. When I have to work in a different environment and use a mouse again, I find the constant context switching very distracting
- fourseventy 5y agoI'm yet to dive into treesitter. Was it hard to get it installed for nvim. Also, was it hard to get the language plugins installed?
- jamespwilliams 5y agoI found it straightforward to install based on the documentation in the READMEs of both: - https://github.com/nvim-treesitter/nvim-treesitter#quickstart https://github.com/nvim-treesitter/nvim-treesitter#quickstar... - https://github.com/neovim/nvim-lspconfig#install https://github.com/neovim/nvim-lspconfig#install Just by following the instructions I had a pretty good setup already, but I made a couple of further changes, like setting up autoformatting on save, which was a bit trickier. `vim.lsp.buf.formatting` was useful there, but I had to do a bit of research to figure out how to use it (it wasn't immediately available on the READMEs).