From 28a6c1edb66805044d75a14279d185a2299f9b73 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Mon, 15 Nov 2021 18:24:48 -0500 Subject: [PATCH] Configure colorscheme in file, add cursorline --- init.lua | 5 +++-- lua/colorscheme.lua | 6 ++++++ lua/plugins.lua | 2 +- plugin/packer_compiled.lua | 17 +++++++++++------ 4 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 lua/colorscheme.lua diff --git a/init.lua b/init.lua index e2d2a2e..ec2b699 100644 --- a/init.lua +++ b/init.lua @@ -11,7 +11,8 @@ require('packer').startup(function() use 'nvim-telescope/telescope.nvim' use 'kyazdani42/nvim-tree.lua' use 'lukas-reineke/indent-blankline.nvim' - use 'navarasu/onedark.nvim' + use 'sainnhe/sonokai' + use 'yamatsum/nvim-cursorline' use 'nvim-treesitter/nvim-treesitter' use {'ms-jpq/coq_nvim', branch = 'coq'} use {'ms-jpq/coq.artifacts', branch = 'artifacts'} @@ -30,6 +31,6 @@ set.pumheight = 5 set.number = true set.tabstop = 4 set.shiftwidth = 4 -vim.cmd('colorscheme onedark') -- I would assume there would be a more lua-y way to do this... right? +require("colorscheme") require("plugins") require("keybinds") diff --git a/lua/colorscheme.lua b/lua/colorscheme.lua new file mode 100644 index 0000000..eb56693 --- /dev/null +++ b/lua/colorscheme.lua @@ -0,0 +1,6 @@ +vim.g.sonokai_style = 'atlantis' +vim.g.sonokai_diagnostic_line_highlight = 1 +vim.g.sonokai_diagnostic_virtual_text = 'colored' +vim.g.sonokai_current_word = 'underline' +vim.g.sonokai_better_performance = 1 +vim.cmd('colorscheme sonokai') diff --git a/lua/plugins.lua b/lua/plugins.lua index 14c82dc..8758257 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -49,7 +49,7 @@ vim.cmd('COQnow -s') require('lualine').setup { options = { icons_enabled = true, - theme = 'onedark', + theme = 'sonokai', component_separators = {'', ''}, section_separators = {'', ''}, disabled_filetypes = {} diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index 789e746..4058ab6 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -92,7 +92,7 @@ _G.packer_plugins = { ["filetype.nvim"] = { loaded = true, path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/filetype.nvim", - url = "https://github.com/nathom/filetype.nvim" + url = "https://github.com/Ruthenic/filetype.nvim" }, ["indent-blankline.nvim"] = { loaded = true, @@ -104,6 +104,11 @@ _G.packer_plugins = { path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, + ["nvim-cursorline"] = { + loaded = true, + path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/nvim-cursorline", + url = "https://github.com/yamatsum/nvim-cursorline" + }, ["nvim-gps"] = { loaded = true, path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/nvim-gps", @@ -129,11 +134,6 @@ _G.packer_plugins = { path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/kyazdani42/nvim-web-devicons" }, - ["onedark.nvim"] = { - loaded = true, - path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/onedark.nvim", - url = "https://github.com/navarasu/onedark.nvim" - }, ["packer.nvim"] = { loaded = true, path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/packer.nvim", @@ -149,6 +149,11 @@ _G.packer_plugins = { path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/presence.nvim", url = "https://github.com/andweeb/presence.nvim" }, + sonokai = { + loaded = true, + path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/sonokai", + url = "https://github.com/sainnhe/sonokai" + }, ["telescope.nvim"] = { loaded = true, path = "/home/ruthenic/.local/share/nvim/site/pack/packer/start/telescope.nvim",