From 90894f0e21bfbd58da9b5f049e7826f22dcd97f9 Mon Sep 17 00:00:00 2001 From: caem Date: Sun, 23 Jun 2024 22:46:04 +0200 Subject: [PATCH] neovim: switch to kanagawa --- .../nvim/config/lua/plugins/gruvbox.lua | 12 ----- .../nvim/config/lua/plugins/kanagawa.lua | 49 ++++++++++++++++--- 2 files changed, 43 insertions(+), 18 deletions(-) delete mode 100644 users/hu/packages/nvim/config/lua/plugins/gruvbox.lua diff --git a/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua b/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua deleted file mode 100644 index 9ca4eb0..0000000 --- a/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - "ellisonleao/gruvbox.nvim", - priority = 1000, - config = function() - require"gruvbox".setup { - transparent_mode = true, - contrast = "soft", - } - vim.cmd("colorscheme gruvbox") - end, -} - diff --git a/users/hu/packages/nvim/config/lua/plugins/kanagawa.lua b/users/hu/packages/nvim/config/lua/plugins/kanagawa.lua index a627864..06ffeb6 100644 --- a/users/hu/packages/nvim/config/lua/plugins/kanagawa.lua +++ b/users/hu/packages/nvim/config/lua/plugins/kanagawa.lua @@ -1,12 +1,49 @@ -return {} --- Currently using gruvbox ---[[return { +return { "rebelot/kanagawa.nvim", config = function() require"kanagawa".setup { - transparent = true + theme = "dragon", + background = { + dark = "dragon", + light = "lotus", + }, + transparent = true, + colors = { + theme = { + all = { + ui = { + bg_gutter = "none", + }, + }, + }, + }, + overrides = function(colors) + local theme = colors.theme + return { + NormalFloat = { bg = "none" }, + FloatBorder = { bg = "none" }, + FloatTitle = { bg = "none" }, + + -- Save an hlgroup with dark background and dimmed foreground + -- so that you can use it where your still want darker windows. + -- E.g.: autocmd TermOpen * setlocal winhighlight=Normal:NormalDark + NormalDark = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m3 }, + + -- Popular plugins that open floats will link to NormalFloat by default; + -- set their background accordingly if you wish to keep them dark and borderless + LazyNormal = { bg = theme.ui.bg_m3, fg = theme.ui.fg_dim }, + MasonNormal = { bg = theme.ui.bg_m3, fg = theme.ui.fg_dim }, + TelescopeTitle = { fg = theme.ui.special, bold = true }, + TelescopePromptNormal = { bg = theme.ui.bg_p1 }, + TelescopePromptBorder = { fg = theme.ui.bg_p1, bg = theme.ui.bg_p1 }, + TelescopeResultsNormal = { fg = theme.ui.fg_dim, bg = theme.ui.bg_m1 }, + TelescopeResultsBorder = { fg = theme.ui.bg_m1, bg = theme.ui.bg_m1 }, + TelescopePreviewNormal = { bg = theme.ui.bg_dim }, + TelescopePreviewBorder = { bg = theme.ui.bg_dim, fg = theme.ui.bg_dim }, + } + end, } - vim.cmd("colorscheme kanagawa-dragon") + vim.cmd"colorscheme kanagawa" end } -]]-- +