From 10fec2c615f056af00415e3dca66939a0433cc0a Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 28 Jul 2024 20:12:53 +0200 Subject: [PATCH] refactor(nvim): pass theme setting to themes.lua --- neovim/default.nix | 6 ++++-- neovim/themes.lua | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/neovim/default.nix b/neovim/default.nix index 937c266..98ace56 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -162,8 +162,10 @@ ${builtins.readFile ./nvim-cmp.lua } ${builtins.readFile ./telescope.lua } - ${builtins.readFile ./themes.lua } - vim.opt.background = '${theme}' + do + local vim_theme = "${theme}"; + ${builtins.readFile ./themes.lua } + end ${builtins.readFile ./project-nvim.lua } ${builtins.readFile ./dap.lua } diff --git a/neovim/themes.lua b/neovim/themes.lua index 8d0b48e..2b7d93b 100644 --- a/neovim/themes.lua +++ b/neovim/themes.lua @@ -1 +1,2 @@ vim.cmd("colorscheme solarized") +vim.opt.background = vim_theme