mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add noice & statuscol
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
return {
|
||||
{
|
||||
"noice.nvim",
|
||||
lazy = false,
|
||||
load = function() end,
|
||||
opts = {
|
||||
presets = {
|
||||
command_palette = true,
|
||||
},
|
||||
signature = {
|
||||
auto_open = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
views = {
|
||||
mini = {
|
||||
timeout = 5000,
|
||||
reverse = false,
|
||||
},
|
||||
},
|
||||
routes = {
|
||||
-- ignore ltex messages
|
||||
{
|
||||
filter = {
|
||||
event = "lsp",
|
||||
kind = "progress",
|
||||
cond = function(message)
|
||||
local client = vim.tbl_get(message.opts, "progress", "client")
|
||||
return client == "ltex"
|
||||
end,
|
||||
},
|
||||
opts = { skip = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
after = function(plug)
|
||||
require("noice").setup(plug.opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
return {
|
||||
{
|
||||
"statuscol.nvim",
|
||||
lazy = false,
|
||||
load = function() end,
|
||||
after = function()
|
||||
local builtin = require("statuscol.builtin")
|
||||
require("statuscol").setup({
|
||||
relculright = false,
|
||||
segments = {
|
||||
{
|
||||
sign = {
|
||||
name = { ".*" },
|
||||
namespace = { ".*" },
|
||||
maxwidth = 1,
|
||||
},
|
||||
click = "v:lua.ScSa"
|
||||
},
|
||||
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa", },
|
||||
{
|
||||
sign = { namespace = { "gitsign" }, maxwidth = 1, colwidth = 1 },
|
||||
click = "v:lua.ScSa"
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user