mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 11:38:00 +00:00
[neovim] Add noice plugin and remove wilder
This commit is contained in:
parent
16dc57cf7e
commit
a3f634c84b
@ -78,7 +78,13 @@ require("lazy").setup({
|
||||
{ "nvim-lualine/lualine.nvim", event = "VeryLazy" },
|
||||
{ "lukas-reineke/indent-blankline.nvim", event = "BufReadPost", version = "v2.*" },
|
||||
{ "nvim-zh/auto-save.nvim", event = "BufReadPost" },
|
||||
{ "gelguy/wilder.nvim" },
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
},
|
||||
{ "romgrk/fzy-lua-native" },
|
||||
{ "mg979/vim-visual-multi", version = "v0.*" },
|
||||
{ "gnikdroy/projections.nvim", branch = "pre_release" },
|
||||
|
@ -12,7 +12,7 @@ require("plugins.indentline")
|
||||
require("plugins.lsp")
|
||||
require("plugins.go")
|
||||
require("plugins.dap")
|
||||
require("plugins.wilder")
|
||||
require("plugins.noice")
|
||||
require("plugins.trouble")
|
||||
require("plugins.autosave")
|
||||
require("plugins.markdowntoc")
|
||||
|
28
.config/nvim/lua/plugins/noice.lua
Normal file
28
.config/nvim/lua/plugins/noice.lua
Normal file
@ -0,0 +1,28 @@
|
||||
require("noice").setup({
|
||||
presets = {
|
||||
bottom_search = true,
|
||||
command_palette = false,
|
||||
},
|
||||
cmdline = {
|
||||
view = "cmdline",
|
||||
},
|
||||
views = {
|
||||
mini = {
|
||||
backend = "mini",
|
||||
align = "message-left",
|
||||
position = {
|
||||
row = -1,
|
||||
col = "0%",
|
||||
},
|
||||
},
|
||||
},
|
||||
routes = {
|
||||
{
|
||||
filter = {
|
||||
event = "lsp",
|
||||
find = "diagnostics",
|
||||
},
|
||||
opts = { skip = true },
|
||||
},
|
||||
},
|
||||
})
|
@ -1,63 +0,0 @@
|
||||
local wilder = require("wilder")
|
||||
|
||||
wilder.setup({
|
||||
modes = { ":" },
|
||||
})
|
||||
|
||||
wilder.set_option("use_python_remote_plugin", 1)
|
||||
|
||||
wilder.set_option("pipeline", {
|
||||
wilder.branch(
|
||||
wilder.python_file_finder_pipeline({
|
||||
file_command = { "fd", "--hidden", "--type=file", "--exclude=.git" },
|
||||
dir_command = { "fd", "--hidden", "--type=directory", "--exclude=.git" },
|
||||
filters = { "fuzzy_filter", "difflib_sorter" },
|
||||
}),
|
||||
wilder.cmdline_pipeline({
|
||||
fuzzy = 2,
|
||||
fuzzy_filter = wilder.lua_fzy_filter(),
|
||||
})
|
||||
),
|
||||
})
|
||||
|
||||
-- Better highlighting
|
||||
|
||||
local gradient = {
|
||||
"#f4468f",
|
||||
"#fd4a85",
|
||||
"#ff507a",
|
||||
"#ff566f",
|
||||
"#ff5e63",
|
||||
"#ff6658",
|
||||
"#ff704e",
|
||||
"#ff7a45",
|
||||
"#ff843d",
|
||||
"#ff9036",
|
||||
"#f89b31",
|
||||
"#efa72f",
|
||||
"#e6b32e",
|
||||
"#dcbe30",
|
||||
"#d2c934",
|
||||
"#c8d43a",
|
||||
"#bfde43",
|
||||
"#b6e84e",
|
||||
"#aff05b",
|
||||
}
|
||||
|
||||
for i, fg in ipairs(gradient) do
|
||||
gradient[i] = wilder.make_hl("WilderGradient" .. i, "Pmenu", { { a = 1 }, { a = 1 }, { foreground = fg } })
|
||||
end
|
||||
|
||||
wilder.set_option(
|
||||
"renderer",
|
||||
wilder.popupmenu_renderer({
|
||||
highlights = {
|
||||
border = "Normal",
|
||||
gradient = gradient,
|
||||
},
|
||||
border = "rounded",
|
||||
highlighter = wilder.highlighter_with_gradient({
|
||||
wilder.lua_fzy_highlighter(),
|
||||
}),
|
||||
})
|
||||
)
|
Loading…
Reference in New Issue
Block a user