neovim, add rust language support

This commit is contained in:
Julia Lange 2024-04-23 23:17:10 -07:00
parent b16fb47719
commit 1b6627bcbe
4 changed files with 16 additions and 5 deletions

View file

@ -39,6 +39,8 @@
require('lspconfig').nil_ls.setup {}
'' + lib.strings.optionalString cfgl.c.enable ''
require('lspconfig').clangd.setup {}
'' + lib.strings.optionalString cfgl.rust.enable ''
require('lspconfig').rustaceanvim.setup {}
'';
in with pkgs.vimPlugins; [
{

View file

@ -21,8 +21,9 @@ in {
# I've tried many things, and can't get treesitter plugins changing
# dynamically. For not just have them always loaded regardless of config
treeplugs = p: [
p.tree-sitter-nix
p.tree-sitter-c
p.tree-sitter-nix
p.tree-sitter-rust
];
in with pkgs.vimPlugins; [
{