Compare commits

...

3 Commits

5 changed files with 115 additions and 37 deletions

View File

@ -7,39 +7,6 @@
lvim.colorscheme = "melange"
lvim.builtin.breadcrumbs.active = false
lvim.builtin.gitsigns.opts.signs = {
add = {
hl = "GitSignsAdd",
text = "",
numhl = "GitSignsAddNr",
linehl = "GitSignsAddLn",
},
change = {
hl = "GitSignsChange",
text = "",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
delete = {
hl = "GitSignsDelete",
text = "",
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
topdelete = {
hl = "GitSignsDelete",
text = "",
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
changedelete = {
hl = "GitSignsChange",
text = "",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
}
lvim.lsp.automatic_servers_installation = false
lvim.lsp.automatic_configuration.skipped_servers = { "rust_analyzer" }
@ -50,7 +17,9 @@ require "configs.bufferline"
require "configs.dropbar"
require "configs.dap"
require "configs.acmp"
require "configs.gitsigns"
require "configs.colorizer"
require "configs.autotag"
require "configs.prettier"
require "configs.nvimufo"
require "configs.notify"

View File

@ -0,0 +1,33 @@
lvim.builtin.gitsigns.opts.signs = {
add = {
hl = "GitSignsAdd",
text = "",
numhl = "GitSignsAddNr",
linehl = "GitSignsAddLn",
},
change = {
hl = "GitSignsChange",
text = "",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
delete = {
hl = "GitSignsDelete",
text = "",
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
topdelete = {
hl = "GitSignsDelete",
text = "",
numhl = "GitSignsDeleteNr",
linehl = "GitSignsDeleteLn",
},
changedelete = {
hl = "GitSignsChange",
text = "",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
}

View File

@ -1,4 +1,36 @@
local focused = true
vim.api.nvim_create_autocmd("FocusGained", {
callback = function()
focused = true
end,
})
vim.api.nvim_create_autocmd("FocusLost", {
callback = function()
focused = false
end,
})
require("noice").setup({
table.insert(opts.routes, {
filter = {
event = "notify",
find = "No information available",
},
opts = { skip = true },
}),
table.insert(opts.routes, 1, {
filter = {
cond = function()
return not focused
end,
},
view = "notify_send",
opts = { stop = false },
}),
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {

View File

@ -0,0 +1,40 @@
local BUILTIN_STAGES = {
FADE = "fade",
SLIDE = "slide",
FADE_IN_SLIDE_OUT = "fade_in_slide_out",
STATIC = "static",
}
require("notify").setup({
level = vim.log.levels.TRACE,
timeout = 5000,
max_height = function()
return math.floor(vim.o.lines * 0.75)
end,
max_width = function()
return math.floor(vim.o.columns * 0.75)
end,
on_open = function(win)
vim.api.nvim_win_set_config(win, { zindex = 100 })
end,
stages = BUILTIN_STAGES.SLIDE,
render = "default",
background_colour = "NotifyBackground",
on_close = function () end,
minimum_width = 50,
fps = 10,
top_down = true,
time_formats = {
notification_history = "%FT%T",
notification = "%T",
},
icons = {
ERROR = "",
WARN = "",
INFO = "",
DEBUG = "",
TRACE = "",
},
})
require("notify")("You're welcome!")

View File

@ -90,9 +90,6 @@ lvim.plugins = {
{
'rust-lang/rust.vim',
},
{
'kevinhwang91/nvim-bqf'
},
{
'MunifTanjim/prettier.nvim'
},
@ -255,6 +252,9 @@ lvim.plugins = {
{
"tanvirtin/monokai.nvim"
},
{
"rcarriga/nvim-notify",
},
{
"folke/noice.nvim",
event = "VeryLazy",
@ -270,9 +270,13 @@ lvim.plugins = {
},
},
dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
"MunifTanjim/nui.nvim",
-- OPTIONAL:
-- `nvim-notify` is only needed, if you want to use the notification view.
-- If not available, we use `mini` as the fallback
"rcarriga/nvim-notify",
},
}
},
}