fix(neovim): move astrolsp and polish back to lua files

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-01-17 09:01:08 -03:00
parent 0ad475e6bf
commit 172914e9a4
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
5 changed files with 302 additions and 306 deletions

View file

@ -130,11 +130,20 @@ in
source = ./lua;
};
xdg.configFile."nvim/lua/plugins/astrolsp.lua".text = import ./lsp.nix {
config = config;
pkgs = pkgs;
};
xdg.configFile."nvim/lua/plugins/astrolsp.lua".source = pkgs.runCommand "astrolsp.lua" { } ''
cp ${./lsp.lua} $out
xdg.configFile."nvim/lua/polish.lua".text = import ./polish.nix pkgs;
substituteInPlace $out \
--replace-fail "{hostname}" "${config.programs.neovim.nixd.hostname}" \
--replace-fail "{location}" "${config.programs.neovim.nixd.location}" \
--replace-fail "{pkgs.vue-language-server}" "${pkgs.vue-language-server}"
'';
xdg.configFile."nvim/lua/polish.lua".source = pkgs.runCommand "polish.lua" { } ''
cp ${./polish.lua} $out
substituteInPlace $out \
--replace-fail "{pkgs.vscode-extensions.ms-vscode.cpptools}" "${pkgs.vscode-extensions.ms-vscode.cpptools}" \
'';
};
}