feat: improve nvim config with nix

This commit is contained in:
Noa Aarts 2024-07-23 21:36:07 +02:00
parent 968ea9e6b7
commit 446dd1ddbd
2 changed files with 31 additions and 17 deletions

View file

@ -713,6 +713,10 @@ require("lazy").setup({
{ "kenn7/vim-arsync", requires = { "prabirshrestha/async.vim" } }, { "kenn7/vim-arsync", requires = { "prabirshrestha/async.vim" } },
{
"nvim-tree/nvim-web-devicons",
},
{ -- Collection of various small independent plugins/modules { -- Collection of various small independent plugins/modules
"echasnovski/mini.nvim", "echasnovski/mini.nvim",
config = function() config = function()

View file

@ -1,17 +1,27 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
home.packages = with pkgs; [ programs.neovim =
# needed for the nvim config, neovim itself is a system package already {
enable = true;
extraPackages = with pkgs; [
ripgrep ripgrep
luarocks
# TODO: find how I can make this build dependencies only
gnumake gnumake
rustc rustc
python3 (python3.withPackages (python-pkgs: [
python-pkgs.pip
]))
wget
julia
gopls
nixpkgs-fmt
lua51Packages.lua
tree-sitter
php83Packages.composer
php83
temurin-jre-bin
fd
]; ];
programs.neovim = {
enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;