mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
fix: nvim-treesitter
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -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 = ''
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user