diff --git a/hosts/dell-5590/nixos/configuration.nix b/hosts/dell-5590/nixos/configuration.nix index d211c13..d2af148 100644 --- a/hosts/dell-5590/nixos/configuration.nix +++ b/hosts/dell-5590/nixos/configuration.nix @@ -33,8 +33,8 @@ shellAliases = { ll = "ls -l"; ls = "lsd"; - vi = "nvim"; - vim = "nvim"; + #vi = "nvim"; + #vim = "nvim"; cat = "bat"; sysrs = "sudo nixos-rebuild switch"; sysup = "sudo nixos-rebuild switch --upgrade"; diff --git a/hosts/dell-5590/nixpkgs/home.nix b/hosts/dell-5590/nixpkgs/home.nix index 0c43421..c70d6f1 100644 --- a/hosts/dell-5590/nixpkgs/home.nix +++ b/hosts/dell-5590/nixpkgs/home.nix @@ -12,7 +12,7 @@ ./bat.nix ./kdeconnect.nix # ./redshift.nix -# ../../../modules/neovim.nix + ../../../modules/neovim.nix ../../../modules/rust.nix ../../../modules/tmux.nix ]; diff --git a/hosts/dell-5590/nixpkgs/packages.nix b/hosts/dell-5590/nixpkgs/packages.nix index 3838dc7..6a9795a 100644 --- a/hosts/dell-5590/nixpkgs/packages.nix +++ b/hosts/dell-5590/nixpkgs/packages.nix @@ -45,7 +45,6 @@ exa bat vimPlugins.vim-markdown-composer - neovim python3 mtr powertop diff --git a/modules/common.nix b/modules/common.nix index f03ae79..a4e65ba 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -1,6 +1,6 @@ { config, pkgs, ...}: { - environment.variables.EDITOR = "nvim"; + #environment.variables.EDITOR = "nvim"; environment.systemPackages = with pkgs; [ gitAndTools.gitFull unzip @@ -8,7 +8,7 @@ tmux lshw bc - neovim + #neovim ncdu nixos-option bat diff --git a/modules/neovim.nix b/modules/neovim.nix index c85cf86..ce7c218 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -1,14 +1,15 @@ -{ lib, config, pkgs, ... }: -let - # […] - nix-nvim = builtins.fetchGit { -# url = "https://git.atlanticaweb.fr/alexandre/nix-nvim.git"; -# ref = "main"; -# rev = "fc0cf4d36b3872f80a931ed05993f2d5755b26da"; - url = "https://framagit.org/vegaelle/nix-nvim.git"; - ref = "main"; +{ pkgs, ... }: { +programs.neovim = { + enable = true ; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + plugins = with pkgs.vimPlugins;[ + nvim-lspconfig + nvim-treesitter.withAllGrammars + plenary-nvim + gruvbox-material + mini-nvim + ]; }; -in -{ - imports = [ (import "${nix-nvim}") ]; } diff --git a/modules/users.nix b/modules/users.nix index cccbb57..8f569d5 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -28,8 +28,8 @@ programs.fish.shellAliases = { ll = "ls -l"; ls = "lsd"; - vi = "nvim"; - vim = "nvim"; +# vi = "nvim"; +# vim = "nvim"; }; security.sudo = { enable = true;