aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/home/programs
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-27 21:17:08 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-27 21:17:08 -0500
commit3133bb13089c42eafcca9f9d0e96f79df2e42fd8 (patch)
tree69066bfcd6df1e4244c48de7bf445f200c520b15 /nixos/.flake/home/programs
parent7edb3349287bdf182510f1b377583fc9988c6dbb (diff)
move everything but emacs into flake
Diffstat (limited to 'nixos/.flake/home/programs')
-rw-r--r--nixos/.flake/home/programs/core.org2
-rw-r--r--nixos/.flake/home/programs/neovim.org32
-rw-r--r--nixos/.flake/home/programs/zsh.org1
3 files changed, 34 insertions, 1 deletions
diff --git a/nixos/.flake/home/programs/core.org b/nixos/.flake/home/programs/core.org
index 41ec9a9..49e3019 100644
--- a/nixos/.flake/home/programs/core.org
+++ b/nixos/.flake/home/programs/core.org
@@ -11,6 +11,7 @@ This is the core of my program configuration. This file installs programs that d
./git.nix
./hyprlock.nix
./ncmpcpp.nix
+ ./neovim.nix
./ssh.nix
./waybar.nix
./zsh.nix
@@ -18,6 +19,7 @@ This is the core of my program configuration. This file installs programs that d
home.packages = with pkgs; [
discord # not FOSS
+ clang-tools
eza
fuzzel
ispell
diff --git a/nixos/.flake/home/programs/neovim.org b/nixos/.flake/home/programs/neovim.org
new file mode 100644
index 0000000..350eded
--- /dev/null
+++ b/nixos/.flake/home/programs/neovim.org
@@ -0,0 +1,32 @@
+#+title: Neovim Settings
+
+Create a simple Neovim configuration.
+#+begin_src nix :tangle ~/.flake/home/programs/neovim.nix :mkdirp yes
+ { config, pkgs, ... }:
+
+ {
+ programs.neovim = {
+ enable = true;
+
+ defaultEditor = true;
+ viAlias = true;
+ vimAlias = true;
+ plugins = with pkgs.vimPlugins; [
+ vim-trailing-whitespace
+ lightline-vim
+ delimitMate
+ ];
+ extraLuaConfig = ''
+ vim.opt.tabstop = 4
+ vim.opt.expandtab = true
+ vim.opt.shiftwidth = 4
+ vim.opt.autoindent = true
+ vim.opt.wildmode = 'longest,list'
+ vim.opt.number = true
+ vim.g.background = light
+ vim.cmd [[colorscheme default]]
+ vim.cmd [[set notermguicolors]]
+ '';
+ };
+ }
+#+end_src
diff --git a/nixos/.flake/home/programs/zsh.org b/nixos/.flake/home/programs/zsh.org
index f2368e2..79795d0 100644
--- a/nixos/.flake/home/programs/zsh.org
+++ b/nixos/.flake/home/programs/zsh.org
@@ -54,7 +54,6 @@ Create potential aliases and create the prompt.
initExtra = ''
which lesspipe.sh &> /dev/null && export LESSOPEN="|lesspipe.sh %s"
which eza &> /dev/null && alias ls=eza
- which nvim &> /dev/null && alias vi=nvim && alias vim=nvim
parse_git_dirty() {
git_status="$(git status 2> /dev/null)"
[[ "$git_status" =~ "use \"git push\" to publish your local commits" ]] && echo -n " %F{green}%f"