neovim new config
This commit is contained in:
parent
763bbf5cc1
commit
315e988734
50 changed files with 739 additions and 52 deletions
9
home/afoucaultc/packages/neovim/config/colorscheme.nix
Normal file
9
home/afoucaultc/packages/neovim/config/colorscheme.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
colorschemes.tokyonight = {
|
||||
enable = true;
|
||||
settings.style = "night";
|
||||
};
|
||||
};
|
||||
}
|
||||
24
home/afoucaultc/packages/neovim/config/extrafiles.nix
Normal file
24
home/afoucaultc/packages/neovim/config/extrafiles.nix
Normal 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()
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
25
home/afoucaultc/packages/neovim/config/extrapackages.nix
Normal file
25
home/afoucaultc/packages/neovim/config/extrapackages.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
18
home/afoucaultc/packages/neovim/config/extraplugins.nix
Normal file
18
home/afoucaultc/packages/neovim/config/extraplugins.nix
Normal 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>";
|
||||
# };
|
||||
#})
|
||||
#];
|
||||
}
|
||||
10
home/afoucaultc/packages/neovim/config/globals.nix
Normal file
10
home/afoucaultc/packages/neovim/config/globals.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# configuration vim.g.*
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
globals = {
|
||||
mapleader = " ";
|
||||
maplocalleader = ",";
|
||||
};
|
||||
};
|
||||
}
|
||||
7
home/afoucaultc/packages/neovim/config/keymaps.nix
Normal file
7
home/afoucaultc/packages/neovim/config/keymaps.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
keymaps = [
|
||||
];
|
||||
};
|
||||
}
|
||||
17
home/afoucaultc/packages/neovim/config/plugins.nix
Normal file
17
home/afoucaultc/packages/neovim/config/plugins.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue