From 0467a38acd6fcff6ba7b2d2372b900a68342c6e6 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Tue, 25 Jul 2023 00:01:29 +0200 Subject: [PATCH] Added vscode theme, and changed the way themes are assigned --- init.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 9313622..1f8b0d6 100644 --- a/init.lua +++ b/init.lua @@ -36,7 +36,8 @@ local keymap = { jump_to_snippet_end = '', -- } -local theme_with_real_colors = true +---@type 'gruvbox'|'vscode'|nil +local color_scheme = 'vscode' vim.g.mapleader = keymap.leader_key vim.g.maplocalleader = keymap.leader_key @@ -81,7 +82,12 @@ local packer_bootstrap = ensure_packer() local function packer_startup(use) use 'wbthomason/packer.nvim' use 'lervag/vimtex' -- Provides autocompile on save and stuff. (Could probably just replace this thing with something custom) - use 'ellisonleao/gruvbox.nvim' -- Provides these sick colors. + + -- Themes -- + use 'ellisonleao/gruvbox.nvim' + use 'Mofiqul/vscode.nvim' + ------------ + use 'nvim-tree/nvim-tree.lua' -- File explorer. use 'nvim-tree/nvim-web-devicons' -- Provides Pretty icons to look at. Makes the plugin above and below pretty. use 'nvim-lualine/lualine.nvim' -- Lower info-bar. Displays filetype of current open file, and whether the file has unstated changes. @@ -126,10 +132,10 @@ local function packer_startup(use) vim.g.vimtex_view_method = 'zathura' vim.g.vimtex_syntax_enabled = false - if theme_with_real_colors then + if color_scheme ~= nil then vim.o.termguicolors = true vim.o.background = "dark" - vim.cmd [[ colorscheme gruvbox ]] + vim.cmd(" colorscheme " .. color_scheme .. " ") end vim.g.loaded_netrw = 1 -- Disables some built in plugin