diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-12 20:03:40 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-12 20:03:40 -0500 |
| commit | 7e68bb92dd06a6aa267c07b8e0313ad445a7f7c4 (patch) | |
| tree | 050383db021b7bc1be8d50694d601e5f0bbf7b4d | |
| parent | e1dd4d8f20a304545c1acc301d097c16506b2c90 (diff) | |
| download | nvim-config-7e68bb92dd06a6aa267c07b8e0313ad445a7f7c4.tar.gz nvim-config-7e68bb92dd06a6aa267c07b8e0313ad445a7f7c4.tar.xz | |
Add a couple of commands to switch between themes quickly
| -rw-r--r-- | init.lua | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -38,10 +38,10 @@ require('packer').startup(function(use) -- Themes use 'shaunsingh/nord.nvim' - use { "catppuccin/nvim", as = "catppuccin" } - use { "olivertaylor/vacme" } + -- use 'ellisonleao/gruvbox.nvim' + -- use 'shaunsingh/solarized.nvim' @@ -210,3 +210,21 @@ vim.keymap.set('n', '<leader>so', function() end) +vim.api.nvim_create_user_command( + 'SetNord', + function() + LuaLineConf.options.theme = 'nord'; + require('nord').set() + require('lualine').setup(LuaLineConf) + end, + { nargs = 0 } +) +vim.api.nvim_create_user_command( + 'SetAcme', + function() + LuaLineConf.options.theme = 'gruvbox_light'; + vim.api.nvim_command('colorscheme vacme'); + require('lualine').setup(LuaLineConf) + end, + { nargs = 0 } +) |
