From 6a2054b203f1f5717964ec7432ee17657f98dc97 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Thu, 4 Apr 2024 15:41:16 +0200 Subject: [PATCH] Add noice; fix highlight groups of theme --- .config/nvim/lua/plugins/noice.lua | 38 ++++++++++++++++++++++++++ .config/nvim/lua/plugins/themes.lua | 42 ++++++++++++++++++++--------- 2 files changed, 68 insertions(+), 12 deletions(-) create mode 100644 .config/nvim/lua/plugins/noice.lua diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua new file mode 100644 index 0000000..59c89b9 --- /dev/null +++ b/.config/nvim/lua/plugins/noice.lua @@ -0,0 +1,38 @@ +-- lazy.nvim +return { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + lsp = { + signature = { + enabled = false + }, + hover = { + enabled = false + } + }, + views = { + cmdline_popup = { + backend = "popup", + relative = "editor", + position = { + row = -1, + col = "0%" + }, + border = { + style = "none" + } + }, + cmdline_popupmenu = { + relative = "editor", + position = { + row = -2, + col = "0%" + } + } + } + }, + dependencies = { + "MunifTanjim/nui.nvim" + } +} diff --git a/.config/nvim/lua/plugins/themes.lua b/.config/nvim/lua/plugins/themes.lua index a74550a..873e393 100644 --- a/.config/nvim/lua/plugins/themes.lua +++ b/.config/nvim/lua/plugins/themes.lua @@ -1,16 +1,25 @@ return { -- {'doums/darcula', config = function() vim.cmd('colorscheme darcula') end} - -- { - -- "folke/tokyonight.nvim", - -- lazy = false, - -- priority = 1000, - -- opts = {}, - -- config = function() vim.cmd('colorscheme tokyonight-moon') end - -- } - -- { - -- 'rose-pine/neovim', - -- config = function() vim.cmd('colorscheme rose-pine-moon') end - -- } + -- { + -- "folke/tokyonight.nvim", + -- lazy = false, + -- priority = 1000, + -- opts = {}, + -- config = function() vim.cmd('colorscheme tokyonight-moon') end + -- } + -- { + -- 'rose-pine/neovim', + -- config = function() + -- vim.cmd('colorscheme rose-pine-moon') + + -- -- LuaFormatter off + -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) + -- vim.api.nvim_set_hl(0, "FloatBorder", { bg = "none", fg = "none" }) + -- vim.api.nvim_set_hl(0, "TelescopeNormal", { bg = "none" }) + -- vim.api.nvim_set_hl(0, "TelescopeBorder", { bg = "none" }) + -- -- LuaFormatter on + -- end + -- } -- { -- 'AlexvZyl/nordic.nvim', -- lazy = false, @@ -40,6 +49,15 @@ return { opts = { contrast = "hard" }, - init = function() vim.cmd("colorscheme gruvbox") end + init = function() + vim.cmd("colorscheme gruvbox") + + -- LuaFormatter off + vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) + vim.api.nvim_set_hl(0, "NoiceCmdlineIcon", { bg = "#1d2021" }) + vim.api.nvim_set_hl(0, "NoiceCmdlinePopupBorder", { bg = "#1d2021" }) + vim.api.nvim_set_hl(0, "NoiceCmdlinePopupTitle", { bg = "#1d2021" }) + -- LuaFormatter on + end } }