feat: updated neovim configuration to match the configuration from nixvim

This commit is contained in:
Ceferino Patino 2025-07-02 19:38:58 -05:00
commit b42b49b525
Signed by: c4patino
SSH key fingerprint: SHA256:9fQ9TsujGrdNNi76mnsu63v7dS5JOmHRZEqBOl49OR8
31 changed files with 1296 additions and 1094 deletions

89
lua/ui/fidget.lua Normal file
View file

@ -0,0 +1,89 @@
return {
"j-hui/fidget.nvim",
event = "VeryLazy",
config = function()
require("fidget").setup({
logger = {
level = vim.log.levels.WARN, -- "off", "error", "warn", "info", "debug", "trace"
float_precision = 0.01,
},
progress = {
poll_rate = 0,
suppress_on_insert = true,
ignore_done_already = false,
ignore_empty_message = false,
clear_on_detach = function(client_id)
local client = vim.lsp.get_client_by_id(client_id)
return client and client.name or nil
end,
notification_group = function(msg)
return msg.lsp_client.name
end,
ignore = {},
lsp = {
progress_ringbuf_size = 0,
},
display = {
render_limit = 16,
done_ttl = 3,
done_icon = "",
done_style = "Constant",
progress_ttl = math.huge,
progress_icon = {
pattern = "dots",
period = 1,
},
progress_style = "WarningMsg",
group_style = "Title",
icon_style = "Question",
priority = 30,
skip_history = true,
format_message = require("fidget.progress.display").default_format_message,
format_annote = function(msg)
return msg.title
end,
format_group_name = function(group)
return tostring(group)
end,
overrides = {
rust_analyzer = {
name = "rust-analyzer",
},
},
},
},
notification = {
poll_rate = 10,
filter = "info",
history_size = 128,
override_vim_notify = true,
redirect = function(msg, level, opts)
if opts and opts.on_open then
return require("fidget.integration.nvim-notify").delegate(msg, level, opts)
end
end,
configs = {
default = require("fidget.notification").default_config,
},
window = {
normal_hl = "Comment",
winblend = 0,
border = "none",
zindex = 45,
max_width = 0,
max_height = 0,
x_padding = 1,
y_padding = 0,
align = "bottom",
relative = "editor",
},
view = {
stack_upwards = true,
icon_separator = " ",
group_separator = "---",
group_separator_hl = "Comment",
},
},
})
end,
}