From 77d012541706fa866690d29435371bc49b057490 Mon Sep 17 00:00:00 2001 From: huyjaky Date: Sat, 4 Jan 2025 11:51:27 +0700 Subject: [PATCH] astro-nvim-v3 - formatting lsp hover --- lua/plugins/auto-save.lua | 1 + lua/plugins/noice.lua | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lua/plugins/auto-save.lua b/lua/plugins/auto-save.lua index 548ecb8..54d429a 100644 --- a/lua/plugins/auto-save.lua +++ b/lua/plugins/auto-save.lua @@ -2,6 +2,7 @@ return { "okuuva/auto-save.nvim", cmd = "ASToggle", -- optional for lazy loading on command event = { "InsertLeave", "TextChanged" }, -- optional for lazy loading on trigger events + lazy = true, opts = { -- your config goes here -- or just leave it empty :) diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua index ca85a39..44e5feb 100644 --- a/lua/plugins/noice.lua +++ b/lua/plugins/noice.lua @@ -6,7 +6,7 @@ return { config = function() require("noice").setup { -- Configuration here, or leave empty to use defaults - views = { }, + views = {}, messages = { enabled = false, -- disables the Noice messages UI }, @@ -18,7 +18,20 @@ return { enabled = false, }, hover = { - enabled = false, -- disables Noice LSP hover + -- enabled = false, -- disables Noice LSP hover + enabled = true, -- bật Noice hover + silent = true, -- thông báo nếu không có tài liệu hover + view = "hover", -- chế độ hiển thị mặc định cho hover + opts = { -- tùy chỉnh hiển thị + border = { + style = "rounded", -- bo góc viền + text = { top = " Documents ", top_align = "center" }, -- tiêu đề hover + }, + win_options = { + wrap = true, -- bật tự động xuống dòng + linebreak = true, -- ngắt dòng ở khoảng trắng + }, + }, }, signature = { enabled = false, -- disables Noice LSP signature help