From ce379c6823793d6c14990e0a4f9b5facb94cd715 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 4 Feb 2024 20:50:54 +0800 Subject: [PATCH] nixvimConfigs/trovebelt: init --- configs/flake-parts/nixvim.nix | 18 ++++++++++++++---- configs/nixvim/trovebelt/README.adoc | 6 ++++++ configs/nixvim/trovebelt/default.nix | 20 ++++++++++++++++++++ 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 configs/nixvim/trovebelt/README.adoc create mode 100644 configs/nixvim/trovebelt/default.nix diff --git a/configs/flake-parts/nixvim.nix b/configs/flake-parts/nixvim.nix index b096bbd3..d18808e5 100644 --- a/configs/flake-parts/nixvim.nix +++ b/configs/flake-parts/nixvim.nix @@ -1,13 +1,23 @@ -{ lib, ... }: +{ ... }: { - setups.nixvim = { - configs.fiesta = { + setups.nixvim.configs = { + fiesta = { nixpkgsBranches = [ "nixos-unstable" "nixpkgs-unstable" ]; - neovimPackages = pkgs: with pkgs; [ + neovimPackages = p: with p; [ + neovim-nightly + ]; + }; + + trovebelt = { + nixpkgsBranches = [ + "nixos-unstable" + "nixpkgs-unstable" + ]; + neovimPackages = p: with p; [ neovim-nightly ]; }; diff --git a/configs/nixvim/trovebelt/README.adoc b/configs/nixvim/trovebelt/README.adoc new file mode 100644 index 00000000..a30afb10 --- /dev/null +++ b/configs/nixvim/trovebelt/README.adoc @@ -0,0 +1,6 @@ += Trovebelt, the use-for-all-of-the-other-software-development-projects NixVim configuration +:toc: + + +A large NixVim configuration intended to be used for everything software development-related and a little bit of everything. +This is mainly used for non-NixOS environments (including WSL) where installing additional dependencies such as language servers and tree-sitter language servers is a pain. diff --git a/configs/nixvim/trovebelt/default.nix b/configs/nixvim/trovebelt/default.nix new file mode 100644 index 00000000..805a161e --- /dev/null +++ b/configs/nixvim/trovebelt/default.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: + +{ + config = { + # Some general settings. + globals = { + mapleader = " "; + maplocalleader = ","; + syntax = true; + }; + + options = { + encoding = "utf-8"; + completeopt = [ "menuone" "noselect" ]; + expandtab = true; + shiftwidth = 4; + tabstop = 4; + }; + }; +}