1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 17:28:01 +00:00

[neovim] Add noice plugin and remove wilder

This commit is contained in:
Daniel Carrillo 2023-09-22 18:55:08 +02:00
parent 16dc57cf7e
commit a3f634c84b
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
4 changed files with 36 additions and 65 deletions

View File

@ -78,7 +78,13 @@ require("lazy").setup({
{ "nvim-lualine/lualine.nvim", event = "VeryLazy" }, { "nvim-lualine/lualine.nvim", event = "VeryLazy" },
{ "lukas-reineke/indent-blankline.nvim", event = "BufReadPost", version = "v2.*" }, { "lukas-reineke/indent-blankline.nvim", event = "BufReadPost", version = "v2.*" },
{ "nvim-zh/auto-save.nvim", event = "BufReadPost" }, { "nvim-zh/auto-save.nvim", event = "BufReadPost" },
{ "gelguy/wilder.nvim" }, {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
},
},
{ "romgrk/fzy-lua-native" }, { "romgrk/fzy-lua-native" },
{ "mg979/vim-visual-multi", version = "v0.*" }, { "mg979/vim-visual-multi", version = "v0.*" },
{ "gnikdroy/projections.nvim", branch = "pre_release" }, { "gnikdroy/projections.nvim", branch = "pre_release" },

View File

@ -12,7 +12,7 @@ require("plugins.indentline")
require("plugins.lsp") require("plugins.lsp")
require("plugins.go") require("plugins.go")
require("plugins.dap") require("plugins.dap")
require("plugins.wilder") require("plugins.noice")
require("plugins.trouble") require("plugins.trouble")
require("plugins.autosave") require("plugins.autosave")
require("plugins.markdowntoc") require("plugins.markdowntoc")

View 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 },
},
},
})

View File

@ -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(),
}),
})
)