.dotfiles/.config/home-manager/nvim.nix

25 lines
471 B
Nix

{ config, pkgs, ... }:
{
# Packages that should be installed to the user profile.
home.packages = with pkgs; [
nodejs # needed for lsp
fzf # fuzzy finder
#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
'';
};
}