From fac81ea442223b07227299bc83ce64c6195e84e2 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Mon, 23 Jun 2025 09:11:55 +0200 Subject: [PATCH] neovim: fix config issues --- modules/common/neovim.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/common/neovim.nix b/modules/common/neovim.nix index 8867cdc..1a8a4da 100644 --- a/modules/common/neovim.nix +++ b/modules/common/neovim.nix @@ -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;