feat: add autocomplete to nvf

This commit is contained in:
Mohammad Rafiq 2025-03-11 23:40:08 +08:00
parent b0b503da2a
commit fdffc8d4e0
3 changed files with 22 additions and 7 deletions

View file

@ -1,13 +1,13 @@
{ inputs, ... }: {
imports = [
{inputs, ...}: {
imports = [
inputs.nvf.homeManagerModules.default
./nvf/blink-cmp.nix
./nvf/conform-nvim.nix
./nvf/languages/nix.nix
./nvf/lualine.nix
./nvf/noice.nix
./nvf/nvim-tree.nix
./nvf/languages/nix.nix
./nvf/conform-nvim.nix
];
programs.nvf = {
enable = true;

View file

@ -0,0 +1,16 @@
{
programs.nvf.settings.vim.autocomplete.blink-cmp = {
enable = true;
friendly-snippets.enable = true; # code snippets
setupOpts = {
completion = {
documentation.auto_show_delay_ms = 0;
};
};
sourcePlugins = {
emoji.enable = true;
ripgrep.enable = true;
spell.enable = true;
};
};
}

View file

@ -1,8 +1,7 @@
{ inputs, ... }: {
{
programs.nvf.settings.vim.languages.nix = {
enable = true;
lsp = {
# package = inputs.nixd.packages.default;
server = "nixd";
};
};