fix: nvim-treesitter

This commit is contained in:
Ryan Yin
2024-01-08 10:03:48 +08:00
parent 31ac4f1439
commit 919527d6fc
2 changed files with 13 additions and 7 deletions

View File

@@ -52,11 +52,16 @@
} }
); );
devShells = forEachSystem ( devShells = forEachSystem (
system: { system:
default = nixpkgs.legacyPackages.${system}.mkShell { let pkgs = nixpkgs.legacyPackages.${system};
packages = [ in
{
default = pkgs.mkShell {
packages = with pkgs;[
# fix https://discourse.nixos.org/t/non-interactive-bash-errors-from-flake-nix-mkshell/33310 # fix https://discourse.nixos.org/t/non-interactive-bash-errors-from-flake-nix-mkshell/33310
nixpkgs.legacyPackages.${system}.bashInteractive bashInteractive
# fix `cc` replaced by clang, which causes nvim-treesitter compilation error
gcc
]; ];
name = "dots"; name = "dots";
shellHook = '' shellHook = ''

View File

@@ -6,11 +6,12 @@
cmake-language-server cmake-language-server
gnumake gnumake
checkmake checkmake
llvmPackages.clang-unwrapped # c/c++ tools with clang-tools such as clanvimPlugins.nvim-treesitter-parsers.vuegd
lldb
# c/c++ compiler, required by nvim-treesitter! # c/c++ compiler, required by nvim-treesitter!
# to avoid conflicts, you can comment clang-unwrapped first to compile all nvim-treesitter-parsers.
gcc gcc
# c/c++ tools with clang-tools, the unwrapped version won't
# add alias like `cc` and `c++`, so that it won't conflict with gcc
llvmPackages.clang-unwrapped
lldb
#-- python #-- python
nodePackages.pyright # python language server nodePackages.pyright # python language server