UI improvements
This commit is contained in:
parent
0f65d87e11
commit
ecfdc61483
4
init.lua
4
init.lua
|
@ -1,6 +1,10 @@
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = ","
|
||||
vim.opt.termguicolors = true
|
||||
vim.diagnostic.config {
|
||||
virtual_text = true,
|
||||
float = { border = "rounded" },
|
||||
}
|
||||
require "ui.fillchars"
|
||||
|
||||
-- bootstrap lazy.nvim
|
||||
|
|
|
@ -9,7 +9,7 @@ return {
|
|||
completed = "",
|
||||
},
|
||||
window = {
|
||||
blend = 20,
|
||||
blend = 50,
|
||||
border = "rounded",
|
||||
},
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ local on_attach = function(client, bufnr)
|
|||
vim.keymap.set("n", "gd", "<cmd>TroubleToggle lsp_definitions<cr>")
|
||||
vim.keymap.set("n", "gr", "<cmd>TroubleToggle lsp_references<cr>")
|
||||
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, bufopts)
|
||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, bufopts)
|
||||
vim.keymap.set("n", "K", function() vim.lsp.buf.hover { popup_opts = { border = "rounded" } } end, bufopts)
|
||||
vim.keymap.set("n", "<leader>D", "<cmd>TroubleToggle lsp_type_definitions<cr>")
|
||||
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, bufopts)
|
||||
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, bufopts)
|
||||
|
|
|
@ -1,25 +1,27 @@
|
|||
return {
|
||||
"gelguy/wilder.nvim",
|
||||
dependencies = {
|
||||
"romgrk/fzy-lua-native",
|
||||
},
|
||||
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,
|
||||
fuzzy_filter = wilder.lua_fzy_filter(),
|
||||
},
|
||||
wilder.vim_search_pipeline()
|
||||
),
|
||||
})
|
||||
|
||||
wilder.set_option(
|
||||
"renderer",
|
||||
wilder.renderer_mux {
|
||||
[":"] = wilder.popupmenu_renderer {
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
[":"] = wilder.popupmenu_renderer(wilder.popupmenu_border_theme {
|
||||
highlighter = wilder.lua_fzy_highlighter(),
|
||||
left = {
|
||||
" ",
|
||||
wilder.popupmenu_devicons(),
|
||||
|
@ -28,9 +30,11 @@ return {
|
|||
" ",
|
||||
wilder.popupmenu_scrollbar(),
|
||||
},
|
||||
},
|
||||
border = "rounded",
|
||||
min_width = "50%",
|
||||
}),
|
||||
["/"] = wilder.wildmenu_renderer {
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
highlighter = wilder.lua_fzy_highlighter(),
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
vim.opt.winblend = 20
|
||||
vim.opt.pumblend = 20
|
||||
vim.opt.winblend = 50
|
||||
vim.opt.pumblend = 50
|
||||
|
||||
vim.g.neovide_padding_top = 5
|
||||
vim.g.neovide_padding_bottom = 5
|
||||
vim.g.neovide_padding_left = 5
|
||||
vim.g.neovide_padding_right = 5
|
||||
|
||||
vim.g.neovide_floating_blur_amount_x = 2.0
|
||||
vim.g.neovide_floating_blur_amount_y = 2.0
|
||||
vim.g.neovide_floating_blur_amount_x = 5.0
|
||||
vim.g.neovide_floating_blur_amount_y = 5.0
|
||||
|
||||
vim.g.neovide_hide_mouse_when_typing = false
|
||||
vim.g.neovide_remember_window_size = false
|
||||
|
|
Loading…
Reference in a new issue