refactor: move lsp-config

nixos
Moritz Böhme 2024-02-16 11:02:46 +01:00
parent 66cbbaa4ba
commit 71fe796589
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 4 additions and 16 deletions

View File

@ -10,21 +10,6 @@ in
options.my.programs.nvim.enable = mkEnableOption "nvim";
config = mkIf cfg.enable {
my.nixpkgs.overlays = [
(
_: prev:
with lib.my;
{
vimPlugins = prev.vimPlugins // {
# HACK: to fix error in nixpkgs version of nvim-lspconfig
nvim-lspconfig = prev.vimPlugins.nvim-lspconfig.overrideAttrs (_: {
version = mkVersionInput inputs.nvim-lspconfig;
src = inputs.nvim-lspconfig;
});
};
}
)
];
home-manager.users.moritz = {
xdg.configFile."nvim/snippets" = {
recursive = true;

View File

@ -98,7 +98,10 @@ with builtins;
lazy = false;
}
{
plugin = nvim-lspconfig;
plugin = pkgs.vimPlugins.nvim-lspconfig.overrideAttrs (_: {
version = lib.my.mkVersionInput inputs.nvim-lspconfig;
src = inputs.nvim-lspconfig;
});
event = [ "BufRead" "BufNewFile" ];
conf = readFile ./lua/nvim-lspconfig.lua;
dependencies = [