feat(nvim): add avante and split up plugins

This commit is contained in:
Moritz Böhme 2024-09-14 11:05:12 +02:00
parent 44bcf963b2
commit 1aa1714237
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
12 changed files with 419 additions and 500 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, inputs, ... }:
let
inherit (lib) mkEnableOption mkIf readFile;
in
{
home-manager.users.moritz.programs.nixvim = {
plugins.luasnip = {
enable = true;
settings = {
history = true;
update_events = "TextChanged,TextChangedI";
delete_check_events = "TextChanged";
ext_opts.__raw = ''
{
[require("luasnip.util.types").choiceNode] = {
active = {
virt_text = { { "<--", "Error" } },
},
},
}
'';
ft_func.__raw = ''require("luasnip.extras.filetype_functions").from_pos_or_filetype'';
};
};
};
}