refactor: move lsp-config
parent
66cbbaa4ba
commit
71fe796589
|
@ -10,21 +10,6 @@ in
|
||||||
options.my.programs.nvim.enable = mkEnableOption "nvim";
|
options.my.programs.nvim.enable = mkEnableOption "nvim";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
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 = {
|
home-manager.users.moritz = {
|
||||||
xdg.configFile."nvim/snippets" = {
|
xdg.configFile."nvim/snippets" = {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
|
@ -98,7 +98,10 @@ with builtins;
|
||||||
lazy = false;
|
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" ];
|
event = [ "BufRead" "BufNewFile" ];
|
||||||
conf = readFile ./lua/nvim-lspconfig.lua;
|
conf = readFile ./lua/nvim-lspconfig.lua;
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|
Loading…
Reference in New Issue