style: nvim lsp border

This commit is contained in:
DACHXY 2025-01-26 22:12:10 +08:00
parent d210845352
commit 7a2679afdd
8 changed files with 282 additions and 78 deletions

View file

@ -1,71 +0,0 @@
return {
{
"lewis6991/hover.nvim",
opts = {
init = function()
-- Require providers
require("hover.providers.lsp")
-- require('hover.providers.gh')
-- require('hover.providers.gh_user')
-- require('hover.providers.jira')
-- require('hover.providers.dap')
-- require("hover.providers.fold_preview")
require("hover.providers.diagnostic")
-- require('hover.providers.man')
-- require('hover.providers.dictionary')
end,
preview_opts = {
border = "single",
},
-- Whether the contents of a currently open hover window should be moved
-- to a :h preview-window when pressing the hover keymap.
preview_window = false,
title = true,
mouse_providers = {
"LSP",
},
mouse_delay = 1000,
},
keys = {
{
"K",
mode = { "n" },
function()
require("hover").hover()
end,
desc = "hover.nvim",
},
{
"gK",
mode = { "n" },
function()
require("hover").hover_select()
end,
desc = "hover.nvim (select)",
},
{
"<c-p>",
mode = { "n" },
function()
require("hover").hover_switch("previous")
end,
desc = "hover.nvim (previous source)",
},
{
"<c-n>",
mode = { "n" },
function()
require("hover").hover_switch("next")
end,
desc = "hover.nvim (next source)",
},
{
"<MouseMove>",
function()
require("hover").hover_mouse()
end,
desc = "hover.nvim (mouse)",
},
},
},
}

View file

@ -29,6 +29,13 @@ return {
},
})
end,
ui = {
windows = {
default_options = {
border = "rounded",
},
},
},
servers = {
-- biome = {
-- root_dir = function(fname)
@ -90,7 +97,6 @@ return {
end,
},
},
setup = {},
},
},
}

View file

@ -0,0 +1,32 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
{
"s1n7ax/nvim-window-picker", -- for open_with_window_picker keymaps
version = "2.*",
config = function()
require("window-picker").setup({
filter_rules = {
include_current_win = false,
autoselect_one = true,
-- filter using buffer options
bo = {
-- if the file type is one of following, the window will be ignored
filetype = { "neo-tree", "neo-tree-popup", "notify" },
-- if the buffer type is one of following, the window will be ignored
buftype = { "terminal", "quickfix" },
},
},
})
end,
},
},
opts = {
window = {
position = "right",
},
},
},
}

View file

@ -0,0 +1,8 @@
return { {
"folke/noice.nvim",
opts = {
presets = {
lsp_doc_border = true,
},
},
} }