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