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

25 lines
471 B
Nix
Raw Normal View History

2023-04-11 11:08:44 +00:00
{ 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
2023-04-11 11:08:44 +00:00
];
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
'';
};
2023-04-11 11:08:44 +00:00
}