summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-03-21 20:04:50 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-03-21 20:04:50 -0400
commit5844753ded1a3365a620f880abcd50c10338a387 (patch)
tree75a6ecf5cf0ea81ecdbeb9a16552560e81075ca4 /.config
parentb2e74c03677beb164a058f2afa08314d4522df62 (diff)
feat: Emacs Keybind & Neovim Color Variables
- Added an Emacs keybind to set SPACE-ff to find-file. - Neovim sources NVIM_COLORSCHEME & NVIM_BACKGROUND environment variables to set the colorscheme and background color.
Diffstat (limited to '.config')
-rw-r--r--.config/.profile4
-rw-r--r--.config/nvim/fnl/set.fnl13
2 files changed, 13 insertions, 4 deletions
diff --git a/.config/.profile b/.config/.profile
index d5581c2..545f089 100644
--- a/.config/.profile
+++ b/.config/.profile
@@ -34,3 +34,7 @@ export GPG_TTY=$(tty)
export LESSHISTFILE=-
export ZDOTDIR="$XDG_CONFIG_HOME"/shells/zsh
+export NVIM_COLORSCHEME='bluloco'
+export NVIM_BACKGROUND='dark'
+
+
diff --git a/.config/nvim/fnl/set.fnl b/.config/nvim/fnl/set.fnl
index 587e5a8..5ec17c3 100644
--- a/.config/nvim/fnl/set.fnl
+++ b/.config/nvim/fnl/set.fnl
@@ -48,8 +48,13 @@
(vim.api.nvim_create_autocmd [:BufWritePre]
{:command "%s/\\s\\+$//e" :pattern ["*"]})
-;; (vim.cmd.colorscheme :everforest)
-;; (vim.cmd "set background=dark")
-(vim.cmd.colorscheme :bluloco)
-(vim.cmd "set background=dark")
+(local default_colorscheme :bluloco)
+(local colorscheme (os.getenv :NVIM_COLORSCHEME))
+
+(vim.cmd.colorscheme (if (= colorscheme nil) default_colorscheme
+ colorscheme))
+
+(local background (os.getenv :NVIM_BACKGROUND))
+(vim.cmd (.. "set background=" (if (= background nil) :dark
+ background)))