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