Add figet and wilder plugins for improvied ui

Remove noice for neovide compatability
This commit is contained in:
Evie Litherland-Smith 2023-07-16 21:16:53 +01:00
parent a713f7abbc
commit 0f65d87e11
7 changed files with 62 additions and 44 deletions

View file

@ -42,7 +42,6 @@ require("lazy").setup {
} }
-- Set vim options -- Set vim options
vim.cmd [[colorscheme tokyonight]]
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4
vim.opt.expandtab = true vim.opt.expandtab = true
vim.opt.number = true vim.opt.number = true
@ -52,15 +51,16 @@ vim.opt.list = true
vim.opt.splitbelow = true vim.opt.splitbelow = true
vim.opt.splitright = true vim.opt.splitright = true
vim.opt.foldlevelstart = 99 vim.opt.foldlevelstart = 99
-- Global
vim.g.loaded_perl_provider = 0 vim.g.loaded_perl_provider = 0
vim.notify = require "notify"
require "dressing"
-- Common keymaps -- Common keymaps
vim.keymap.set("i", "jk", "<esc>") vim.keymap.set("i", "jk", "<esc>")
vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>") vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>")
-- GUI settings -- GUI settings
if vim.g.neovide then if vim.g.neovide then require "ui.neovide" end
require "ui.neovide"
end -- Colorscheme
vim.cmd [[colorscheme tokyonight]]

16
lua/plugins/fidget.lua Normal file
View file

@ -0,0 +1,16 @@
return {
"j-hui/fidget.nvim",
tag = "legacy",
opts = {
text = {
spinner = "dots",
done = "",
commenced = "",
completed = "",
},
window = {
blend = 20,
border = "rounded",
},
},
}

View file

@ -1,34 +0,0 @@
return {
"folke/noice.nvim",
cond = not vim.g.neovide,
event = { "VeryLazy" },
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
"stevearc/dressing.nvim",
},
config = true,
opts = {
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
inc_rename = false,
lsp_doc_border = true,
},
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
views = {
mini = {
position = { row = -2 },
border = { style = "rounded" },
win_options = { winblend = 0 },
},
},
},
}

View file

@ -13,7 +13,7 @@ return {
opts = { opts = {
icons = require "ui.navic_icons", icons = require "ui.navic_icons",
window = { window = {
border = "none", border = "rounded",
size = "80%", size = "80%",
sections = { sections = {
left = { border = "rounded" }, left = { border = "rounded" },

View file

@ -3,7 +3,7 @@ return {
cmd = "Spectre", cmd = "Spectre",
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },
init = function() init = function()
vim.keymap.set("n", "<leader>S", '<cmd>lua require("spectre").open()<CR>', { desc = "Open Spectre" }) vim.keymap.set("n", "<leader>so", '<cmd>lua require("spectre").open()<CR>', { desc = "Open Spectre" })
vim.keymap.set( vim.keymap.set(
"n", "n",
"<leader>sw", "<leader>sw",

38
lua/plugins/wilder.lua Normal file
View file

@ -0,0 +1,38 @@
return {
"gelguy/wilder.nvim",
config = function()
local wilder = require "wilder"
wilder.setup { modes = { "/", "?", ":" } }
-- Disable Python remote plugin
wilder.set_option("use_python_remote_plugin", 0)
wilder.set_option("pipeline", {
wilder.branch(
wilder.cmdline_pipeline {
fuzzy = 1,
},
wilder.vim_search_pipeline()
),
})
wilder.set_option(
"renderer",
wilder.renderer_mux {
[":"] = wilder.popupmenu_renderer {
highlighter = wilder.basic_highlighter(),
left = {
" ",
wilder.popupmenu_devicons(),
},
right = {
" ",
wilder.popupmenu_scrollbar(),
},
},
["/"] = wilder.wildmenu_renderer {
highlighter = wilder.basic_highlighter(),
},
}
)
end,
}

View file

@ -11,5 +11,3 @@ vim.g.neovide_floating_blur_amount_y = 2.0
vim.g.neovide_hide_mouse_when_typing = false vim.g.neovide_hide_mouse_when_typing = false
vim.g.neovide_remember_window_size = false vim.g.neovide_remember_window_size = false
vim.notify = require "notify"