From 66d9f8d837564c3d4ce3a6ab491c8b1cf205d34c Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 20 Sep 2023 14:15:29 +0200 Subject: [PATCH] added kanagawa theme --- lazy-lock.json | 1 + lua/config/options.lua | 2 +- lua/plugins/kanagawa.lua | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/kanagawa.lua diff --git a/lazy-lock.json b/lazy-lock.json index 1c8de42..7997128 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,6 +27,7 @@ "friendly-snippets": { "branch": "main", "commit": "ebf6d6e83494cdd88a54a429340256f4dbb6a052" }, "gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" }, "indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" }, + "kanagawa.nvim": { "branch": "master", "commit": "a4e99f089110c6d00bc33f5497709200e914e763" }, "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" }, "lazygit.nvim": { "branch": "main", "commit": "75c920883f44243f2bbb172be423e484a58f7c45" }, "lsp-virtual-improved.nvim": { "branch": "master", "commit": "79c53ce05fdeb6590701db55da5832ab4a2c3387" }, diff --git a/lua/config/options.lua b/lua/config/options.lua index 8da5eec..046c85a 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -55,7 +55,7 @@ else -- opt.guifont = 'Hack Nerd Font:h10' -- opt.guifont = 'JetBrainsMono Nerd Font:h10' -- opt.guifont = 'FiraCode Nerd Font:h10' - opt.guifont = 'RobotoMono Nerd Font:h10' + opt.guifont = 'RobotoMono Nerd Font:h11' -- opt.guifont = 'Cousine Nerd Font Mono:h10' -- opt.guifont = 'DroidSansM Nerd Font Propo:h10' -- opt.guifont = 'AnonymicePro Nerd Font:h11' diff --git a/lua/plugins/kanagawa.lua b/lua/plugins/kanagawa.lua new file mode 100644 index 0000000..2627fe1 --- /dev/null +++ b/lua/plugins/kanagawa.lua @@ -0,0 +1,36 @@ +return { + 'rebelot/kanagawa.nvim', + config = function() + require('kanagawa').setup({ + compile = false, -- enable compiling the colorscheme + undercurl = true, -- enable undercurls + commentStyle = { italic = true }, + functionStyle = {}, + keywordStyle = { italic = true }, + statementStyle = { bold = true }, + typeStyle = {}, + transparent = false, -- do not set background color + dimInactive = true, -- dim inactive window `:h hl-NormalNC` + terminalColors = true, -- define vim.g.terminal_color_{0,17} + colors = { + -- add/modify theme and palette colors + palette = {}, + theme = { wave = {}, lotus = {}, dragon = {}, all = {} }, + }, + overrides = function(colors) -- add/modify highlights + return { + ['@lsp.mod.readonly'] = { bold = true }, + } + end, + theme = 'wave', -- Load "wave" theme when 'background' option is not set + background = { + -- map the value of 'background' option to a theme + dark = 'wave', -- try "dragon" ! + light = 'lotus' + }, + }) + + vim.cmd('colorscheme kanagawa') + end, + enabled = true +}