From 861bbdfb1d8af1e68f58b9a350212102e1d3f804 Mon Sep 17 00:00:00 2001 From: Bazaah Date: Mon, 5 Sep 2022 11:39:27 +0000 Subject: [PATCH] nvim/plug: -vim-one, +onedarkpro.nvim@master Better color scheme implementation of one --- nvim/lua/psoxizsh/init.lua | 2 +- nvim/lua/psoxizsh/plugins/config/onedark.lua | 21 ++++++++++++++++++++ nvim/lua/psoxizsh/plugins/plug.lua | 12 +++++------ 3 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 nvim/lua/psoxizsh/plugins/config/onedark.lua diff --git a/nvim/lua/psoxizsh/init.lua b/nvim/lua/psoxizsh/init.lua index 1f4be77..3f1cc48 100644 --- a/nvim/lua/psoxizsh/init.lua +++ b/nvim/lua/psoxizsh/init.lua @@ -7,7 +7,7 @@ local function psoxizsh_early_config() -- Set global color scheme var if not g.my_color_scheme then - g.my_color_scheme = 'one' + g.my_color_scheme = 'onedarkpro' end -- Color settings diff --git a/nvim/lua/psoxizsh/plugins/config/onedark.lua b/nvim/lua/psoxizsh/plugins/config/onedark.lua new file mode 100644 index 0000000..d9ab1c4 --- /dev/null +++ b/nvim/lua/psoxizsh/plugins/config/onedark.lua @@ -0,0 +1,21 @@ +return function() + local odp, util = require 'onedarkpro', require 'psoxizsh.util' + + local defaults = { + plugins = { all = true }, + styles = { + comments = 'italic', + }, + options = { + bold = true, + italic = true, + underline = true, + undercurl = true, + }, + } + + if not vim.g.my_color_scheme then vim.g.my_color_scheme = 'onedarkpro' end + + odp.setup(util.mconfig('config.onedark', defaults)) +end + diff --git a/nvim/lua/psoxizsh/plugins/plug.lua b/nvim/lua/psoxizsh/plugins/plug.lua index f4263b2..bda15a2 100644 --- a/nvim/lua/psoxizsh/plugins/plug.lua +++ b/nvim/lua/psoxizsh/plugins/plug.lua @@ -18,6 +18,11 @@ local plugins = { as = 'vimp' }, + -- Color themes + { 'olimorris/onedarkpro.nvim', + config = require 'psoxizsh.plugins.config.onedark' + }, + -- Text alignment { 'junegunn/vim-easy-align' }, { 'tmsvg/pear-tree', @@ -104,15 +109,10 @@ local plugins = { { 'junegunn/fzf.vim', config = require 'psoxizsh.plugins.config.fzf' }, + { 'romainl/vim-cool' }, { 'adelarsq/vim-matchit' }, { 'mox-mox/vim-localsearch' }, - -- Color themes - { 'rakr/vim-one', - config = function() vim.cmd(string.format('colorscheme %s', vim.g.my_color_scheme or 'one')) end - }, - { 'romainl/vim-cool' }, - -- Tmux integration for pane movement { 'christoomey/vim-tmux-navigator', keys = { '', '', '', '' },