< Back to all clusters
[TECHNOLOGY] · United States · 2 sources

started · updated

Neovim and Vim configuration optimizations for code folding and Rust

Developers are sharing specialized configurations for using Vim and Neovim to enhance coding workflows, specifically focusing on code folding and Rust development.

One approach to optimizing Neovim involves using Tree-sitter as the primary source of truth for code folding. By setting the fold method to expression and utilizing the Tree-sitter grammar, developers can ensure consistent folding behavior across various files, even in environments where a Language Server Protocol (LSP) might not be configured.

For Rust development, users are layering plugins such as rust-tools and nvim-lspconfig to automate LSP setup and improve the editing experience. Other essential quality-of-life plugins mentioned include NERDTree for file navigation, fzf for searching, and obsession for session management.

Entities

Neovim · Rust · Tree-sitter · Vim

Sources

Cracking Neovim code folding [www.jackfranklin.co.uk]
about 15 hours ago
about 16 hours ago