1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

neovim: fix config issues

This commit is contained in:
TheGeneralist 2025-06-23 09:11:55 +02:00
parent 9cabbde103
commit fac81ea442
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -1,12 +1,11 @@
{ pkgs, config, lib, ... }: let
inherit (lib) optionals;
inherit (lib) optionals optionalAttrs;
in {
environment.variables.EDITOR = "nvim";
home-manager.sharedModules = [{
programs.neovim = {
enable = true;
extraLuaConfig = lib.fileContents ../home/dotfiles/nvim/init.lua;
};
home.sessionVariables = {
@ -14,8 +13,6 @@ in {
};
home.packages = with pkgs; [
vimPlugins.markdown-preview-nvim
# Lua
luajitPackages.luarocks_bootstrap
lua-language-server
@ -24,14 +21,17 @@ in {
nodejs
nodePackages."sass"
#llvmPackages_20.clangWithLibcAndBasicRtAndLibcxx
] ++ optionals config.onLinux [
gcc_multi
#gcc_multi
];
home.file = lib.mkIf config.onLinux {
home.file = {
".config/nvim" = {
source = ../home/dotfiles/nvim;
force = true;
recursive = true;
};
} // optionalAttrs config.onLinux {
".config/i3status" = {
source = ../home/dotfiles/i3status;
force = true;