diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-03-21 20:04:50 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-03-21 20:04:50 -0400 |
| commit | 5844753ded1a3365a620f880abcd50c10338a387 (patch) | |
| tree | 75a6ecf5cf0ea81ecdbeb9a16552560e81075ca4 /.config/nvim/fnl | |
| parent | b2e74c03677beb164a058f2afa08314d4522df62 (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/nvim/fnl')
| -rw-r--r-- | .config/nvim/fnl/set.fnl | 13 |
1 files changed, 9 insertions, 4 deletions
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))) |
