visual changes, addet fancy cmd-input and changed some of the notification styles.. Also revamped lsp icons to match notify (except for errors - I like to shit myself with )

This commit is contained in:
pika 2024-07-06 04:24:19 +02:00
parent a76e973992
commit 8135fbe32f
4 changed files with 62 additions and 2 deletions

View file

@ -0,0 +1,41 @@
return {
"VonHeikemen/fine-cmdline.nvim",
dependencies = {
{ "MunifTanjim/nui.nvim" },
},
config = function()
require("fine-cmdline").setup({
cmdline = {
enable_keymaps = true,
smart_history = true,
prompt = ": ",
},
popup = {
position = {
row = "10%",
col = "50%",
},
size = {
width = "60%",
},
border = {
style = "rounded",
},
win_options = {
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
},
},
hooks = {
before_mount = function(input)
-- code
end,
after_mount = function(input)
-- code
end,
set_keymaps = function(imap, feedkeys)
-- code
end,
},
})
end,
}

View file

@ -50,7 +50,7 @@ return {
-- Change the Diagnostic symbols in the sign column (gutter)
-- (not in youtube nvim video)
local signs = { Error = "", Warn = " ", Hint = "", Info = " " }
local signs = { Error = "", Warn = " ", Hint = "", Info = " " }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })

View file

@ -4,9 +4,25 @@ return {
require("notify").setup({
stages = "fade_in_slide_out",
background_colour = "FloatShadow",
max_width = 60,
timeout = 2750,
render = "compact",
-- opacity = 75,
-- Minimum/Maximum width for notification windows
minimum_width = 30,
maximum_width = 60,
-- Function called when a new window is opened, use for changing win settings/config
on_open = nil,
-- Function called when a window is closed
on_close = nil,
icons = {
ERROR = "", -- alternate symbol 
WARN = "",
INFO = "",
DEBUG = "",
TRACE = "",
},
})
vim.notify = require("notify")
end,