nixfiles/home/programs/neovim.nix
NullBite f86de5ff5b
home(neovim): add gcc to env
A compiler is required for the compilation of treesitter grammars. I
should probably figure out how to just add every grammar to Neovim, but
this works with my existing configuration for now. I'm choosing to keep
my config separate because I want to still be able to use it on systems
without Nix.
2025-02-19 15:01:47 -05:00

23 lines
539 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.nixfiles.programs.neovim;
in
{
options.nixfiles.programs.neovim.enable = lib.mkEnableOption "the Neovim configuration";
config = lib.mkIf cfg.enable {
programs.neovim = {
enable = true;
vimAlias = lib.mkDefault true;
withPython3 = lib.mkDefault true;
defaultEditor = lib.mkDefault true;
extraPackages = with pkgs; [
lua-language-server
rust-analyzer
vscode-langservers-extracted
pyright
gcc
];
};
};
}