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,9 @@
{ ... }:
{
programs.nixvim = {
colorschemes.tokyonight = {
enable = true;
settings.style = "night";
};
};
}

View file

@ -0,0 +1,24 @@
# fichiers lua bruts
{ ... }:
{
programs.nixvim = {
extraFiles = {
# lua
"lua/conf/settings.lua".source = ../lua/settings.lua;
"lua/conf/lsp-config.lua".source = ../lua/lsp-config.lua;
"lua/conf/remap.lua".source = ../lua/remap.lua;
"lua/conf/autocmd.lua".source = ../lua/autocmd.lua;
# snippets
"luasnippets/tex.lua".source = ../snippets/tex.lua;
"luasnippets/matlab.lua".source = ../snippets/matlab.lua;
};
extraConfigLua = ''
require("conf.settings")
require("conf.lsp-config")
require("conf.remap")
require("conf.autocmd")
require("luasnip.loaders.from_lua").load()
'';
};
}

View file

@ -0,0 +1,25 @@
# binaires nécessaires
{ pkgs, ... }:
{
programs.nixvim = {
extraPackages = with pkgs; [
# lsp
nil # nix
lua-language-server # lua
texlab # latx
python3 # python
pyright # python v2
# formatters
nixfmt-rfc-style
stylua
ruff
# tools
zathura
ripgrep
fd
octave
];
};
}

View file

@ -0,0 +1,18 @@
# plugins non implémentés dans nixvim et/ou nixpkgs
{ ... }:
{
# extraPlugins = [
# HORS NIXVIM
# pkgs.vimPlugins."<plugin name>"
# HORS NIXPKGS
#(pkgs.vimUtils.buildVimPlugin {
# name = "myPlugin";
# src = pkgs.fetchFromGitHub {
# owner = "<owner>";
# repo = "<repo>";
# rev = "<commit hash>";
# hash = "<nix NAR hash>";
# };
#})
#];
}

View file

@ -0,0 +1,10 @@
# configuration vim.g.*
{ ... }:
{
programs.nixvim = {
globals = {
mapleader = " ";
maplocalleader = ",";
};
};
}

View file

@ -0,0 +1,7 @@
{ ... }:
{
programs.nixvim = {
keymaps = [
];
};
}

View file

@ -0,0 +1,17 @@
{ ... }:
{
imports = [
../plugins/blink-cmp.nix
../plugins/conform-nvim.nix
../plugins/gitsigns.nix
../plugins/lsp.nix
../plugins/lualine.nix
../plugins/luasnip.nix
../plugins/mini.nix
../plugins/oil.nix
../plugins/telescope.nix
../plugins/treesitter.nix
../plugins/vimtex.nix
../plugins/which-key.nix
];
}