feat: add ai and tex support
This commit is contained in:
parent
4439691030
commit
9240bb4db9
7 changed files with 35 additions and 4 deletions
|
@ -4,3 +4,4 @@
|
||||||
- [ ] Open last active buffer after :bd
|
- [ ] Open last active buffer after :bd
|
||||||
- [ ] Code action
|
- [ ] Code action
|
||||||
- [ ] DAP support
|
- [ ] DAP support
|
||||||
|
- [ ] https://github.com/rachartier/tiny-inline-diagnostic.nvim
|
||||||
|
|
18
config/ai/avante.nix
Normal file
18
config/ai/avante.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Cursor like ai driven code suggestions
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
plugins.avante = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
provider = "openai";
|
||||||
|
auto_suggestions_provider = "openai";
|
||||||
|
openai = {
|
||||||
|
endpoint = "https://api.deepseek.com/v1";
|
||||||
|
model = "deepseek-chat";
|
||||||
|
timeout = 30000;
|
||||||
|
temperature = 0;
|
||||||
|
max_tokens = 4096;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -34,7 +34,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cmp-nvim-lsp.enable = true;
|
|
||||||
cmp.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
# Import all your configuration modules here
|
# Import all your configuration modules here
|
||||||
imports = [
|
imports = [
|
||||||
|
./ai/avante.nix
|
||||||
./buffer/bufdelete.nix
|
./buffer/bufdelete.nix
|
||||||
./blink.nix
|
./blink.nix
|
||||||
./bufferline.nix
|
./bufferline.nix
|
||||||
|
|
|
@ -5,5 +5,6 @@
|
||||||
./lsp-format.nix
|
./lsp-format.nix
|
||||||
./lspkind.nix
|
./lspkind.nix
|
||||||
./nvim-metals.nix
|
./nvim-metals.nix
|
||||||
|
./vimtex.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
useGlobalExecutable = true,
|
useGlobalExecutable = true,
|
||||||
verboseCompilation = true
|
verboseCompilation = true
|
||||||
}
|
}
|
||||||
metals_config.capabilities = require("cmp_nvim_lsp").default_capabilities()
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
autoCmd = [
|
autoCmd = [
|
||||||
|
@ -40,7 +39,10 @@
|
||||||
require("metals").initialize_or_attach(metals_config)
|
require("metals").initialize_or_attach(metals_config)
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
pattern = [ "scala" "sbt" ];
|
pattern = [
|
||||||
|
"scala"
|
||||||
|
"sbt"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
10
config/lsp/vimtex.nix
Normal file
10
config/lsp/vimtex.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
plugins.vimtex = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
view_method = "zathura";
|
||||||
|
};
|
||||||
|
texlivePackage = pkgs.texlive.combined.scheme-full;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue