From 40c8b3df18981f8b8b6cb5bd550edaac634db3cf Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Tue, 16 Aug 2022 15:37:32 -0400 Subject: [PATCH] Adding onedarkpro colortheme --- init.lua | 30 +++++++++++++++++++++++++----- lua/plugins.lua | 1 + 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 5b634e2..ee7a036 100644 --- a/init.lua +++ b/init.lua @@ -26,10 +26,32 @@ vim.cmd([[highlight ColorColumn ctermbg=9]]) -- don't use NeoVim's thin cursor vim.opt.guicursor = "" -vim.g.tokyonight_style = "night" -vim.cmd([[colorscheme tokyonight]]) +--vim.g.tokyonight_style = "night" +--vim.cmd([[colorscheme tokyonight]]) --vim.cmd([[colorscheme PaperColor]]) --vim.cmd([[colorscheme moonfly]]) +require("onedarkpro").setup({ + theme = "onedark_dark", + styles = { -- Choose from "bold,italic,underline" + strings = "NONE", -- Style that is applied to strings. + comments = "italic", -- Style that is applied to comments + keywords = "bold", -- Style that is applied to keywords + functions = "NONE", -- Style that is applied to functions + variables = "NONE", -- Style that is applied to variables + virtual_text = "NONE", -- Style that is applied to virtual text + }, + options = { + bold = true, -- Use the colorscheme's opinionated bold styles? + italic = true, -- Use the colorscheme's opinionated italic styles? + underline = true, -- Use the colorscheme's opinionated underline styles? + undercurl = true, -- Use the colorscheme's opinionated undercurl styles? + cursorline = false, -- Use cursorline highlighting? + transparency = false, -- Use a transparent background? + terminal_colors = false, -- Use the colorscheme's colors for Neovim's :terminal? + window_unfocussed_color = true, -- When the window is out of focus, change the normal background? + } +}) +vim.cmd([[colorscheme onedarkpro]]) vim.api.nvim_set_keymap("n", "", "", { noremap = true }) vim.g.mapleader = " " @@ -155,9 +177,7 @@ vim.diagnostic.config({ -- vim.api.nvim_set_keymap("n", "gR", "Trouble lsp_references", -- {silent = true, noremap = true} -- ) - - - +-- -- original init.vim -- syntax on diff --git a/lua/plugins.lua b/lua/plugins.lua index 5ad181a..a198ec3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -15,5 +15,6 @@ packer.startup( use 'folke/tokyonight.nvim' use 'bluz71/vim-moonfly-colors' use 'NLKNguyen/papercolor-theme' + use 'olimorris/onedarkpro.nvim' end )