Fix treesitter compilers with nix/home-manager

Source:
https://www.reddit.com/r/neovim/comments/vyqcny/comment/ig3s444/
This commit is contained in:
Tobias Reisinger 2023-05-28 20:19:30 +02:00
parent c5ad640c8a
commit f442f5a2d3
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 15 additions and 6 deletions

View file

@ -18,7 +18,6 @@
jq # tool for JSON
moar # moar is less
nix-direnv # allow better nix and direnv integration
neovim # alternative to vim
libnotify # allows sending notifications
lsof # who uses that drive/directory
openssh # ssh client and server

View file

@ -5,6 +5,20 @@
home.packages = with pkgs; [
nodejs # needed for lsp
fzf # fuzzy finder
neovim # alternative to vim
#neovim # alternative to vim
];
programs.neovim = {
enable = true;
extraLuaConfig = ''
require("set")
require("remap")
require("plugins")
local status, ts_install = pcall(require, "nvim-treesitter.install")
if(status) then
ts_install.compilers = { "${pkgs.gcc}/bin/gcc" }
end
'';
};
}

View file

@ -1,4 +0,0 @@
require("set")
require("remap")
require("plugins")