neovim new config
This commit is contained in:
parent
763bbf5cc1
commit
315e988734
50 changed files with 739 additions and 52 deletions
19
home/afoucaultc/packages/neovim/plugins/blink-cmp.nix
Normal file
19
home/afoucaultc/packages/neovim/plugins/blink-cmp.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
keymap.preset = "default";
|
||||
sources.default = [
|
||||
"lsp"
|
||||
"path"
|
||||
"snippets"
|
||||
"buffer"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
home/afoucaultc/packages/neovim/plugins/conform-nvim.nix
Normal file
15
home/afoucaultc/packages/neovim/plugins/conform-nvim.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
settings.formatters_by_ft = {
|
||||
nix = [ "nixfmt" ];
|
||||
lua = [ "stylua" ];
|
||||
python = [ "ruff_format" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/plugins/gitsigns.nix
Normal file
10
home/afoucaultc/packages/neovim/plugins/gitsigns.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
19
home/afoucaultc/packages/neovim/plugins/lsp.nix
Normal file
19
home/afoucaultc/packages/neovim/plugins/lsp.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/plugins/lualine.nix
Normal file
10
home/afoucaultc/packages/neovim/plugins/lualine.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
lualine = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/plugins/luasnip.nix
Normal file
10
home/afoucaultc/packages/neovim/plugins/luasnip.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
luasnip = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/plugins/mini.nix
Normal file
10
home/afoucaultc/packages/neovim/plugins/mini.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
mini = {
|
||||
modules.ai = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
home/afoucaultc/packages/neovim/plugins/oil.nix
Normal file
11
home/afoucaultc/packages/neovim/plugins/oil.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
oil = {
|
||||
enable = true;
|
||||
settings.default_file_explorer = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/plugins/telescope.nix
Normal file
10
home/afoucaultc/packages/neovim/plugins/telescope.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
telescope = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
20
home/afoucaultc/packages/neovim/plugins/treesitter.nix
Normal file
20
home/afoucaultc/packages/neovim/plugins/treesitter.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
settings.ensure_installed = [
|
||||
"nix"
|
||||
"lua"
|
||||
"python"
|
||||
"latex"
|
||||
"vim"
|
||||
"vimdoc"
|
||||
"markdown_inline"
|
||||
"regex"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
16
home/afoucaultc/packages/neovim/plugins/vimtex.nix
Normal file
16
home/afoucaultc/packages/neovim/plugins/vimtex.nix
Normal 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/";
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/plugins/which-key.nix
Normal file
10
home/afoucaultc/packages/neovim/plugins/which-key.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
which-key = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue