Fix treesitter compilers with nix/home-manager
Source: https://www.reddit.com/r/neovim/comments/vyqcny/comment/ig3s444/
This commit is contained in:
parent
c5ad640c8a
commit
f442f5a2d3
3 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
require("set")
|
||||
require("remap")
|
||||
|
||||
require("plugins")
|
Loading…
Reference in a new issue