neovim new config

This commit is contained in:
afoucaultc 2026-08-19 14:54:41 +02:00
parent 763bbf5cc1
commit 315e988734
50 changed files with 739 additions and 52 deletions

View file

@ -0,0 +1,19 @@
{ ... }:
{
programs.nixvim = {
plugins = {
blink-cmp = {
enable = true;
settings = {
keymap.preset = "default";
sources.default = [
"lsp"
"path"
"snippets"
"buffer"
];
};
};
};
};
}

View file

@ -0,0 +1,15 @@
{ ... }:
{
programs.nixvim = {
plugins = {
conform-nvim = {
enable = true;
settings.formatters_by_ft = {
nix = [ "nixfmt" ];
lua = [ "stylua" ];
python = [ "ruff_format" ];
};
};
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.nixvim = {
plugins = {
gitsigns = {
enable = true;
};
};
};
}

View file

@ -0,0 +1,19 @@
{ ... }:
{
programs.nixvim = {
plugins = {
lsp = {
enable = true;
servers = {
nil_ls.enable = true;
lua-ls = {
enable = true;
settings.Lua.diagnostics.globals = [ "vim" ];
};
texlab.enable = true;
pyright.enable = true;
};
};
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.nixvim = {
plugins = {
lualine = {
enable = true;
};
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.nixvim = {
plugins = {
luasnip = {
enable = true;
};
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.nixvim = {
plugins = {
mini = {
modules.ai = { };
};
};
};
}

View file

@ -0,0 +1,11 @@
{ ... }:
{
programs.nixvim = {
plugins = {
oil = {
enable = true;
settings.default_file_explorer = true;
};
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.nixvim = {
plugins = {
telescope = {
enable = true;
};
};
};
}

View file

@ -0,0 +1,20 @@
{ ... }:
{
programs.nixvim = {
plugins = {
treesitter = {
enable = true;
settings.ensure_installed = [
"nix"
"lua"
"python"
"latex"
"vim"
"vimdoc"
"markdown_inline"
"regex"
];
};
};
};
}

View file

@ -0,0 +1,16 @@
{ config, ... }:
{
programs.nixvim.plugins.vimtex = {
enable = true;
autoLoad = true;
settings = {
view_method = "zathura";
complete_close_brace = 1;
format_enabled = 1;
imaps_enabled = 0;
complete_enabled = 0;
syntax_enabled = 0;
compiler_latexmk.aux_dir = "${config.home.homeDirectory}/.aux-tex/";
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.nixvim = {
plugins = {
which-key = {
enable = true;
};
};
};
}