diff options
| author | Kyren223 <contact@kyren.codes> | 2026-06-22 01:36:33 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-06-22 01:36:33 +0300 |
| commit | 8b0a17b68d3dbd69caf469c611d7caf82edb71c9 (patch) | |
| tree | e29be98d7c4542034aadbce66bd5064aa41d760a /.config/nvim/lua/plugins | |
| parent | 416dce6b9ea46a570f0d3eeafd2650f0e5bb0ee5 (diff) | |
Problematic lsp hover shit
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/noice.lua | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/.config/nvim/lua/plugins/noice.lua b/.config/nvim/lua/plugins/noice.lua index a9e08f4..3648b55 100644 --- a/.config/nvim/lua/plugins/noice.lua +++ b/.config/nvim/lua/plugins/noice.lua @@ -1,6 +1,8 @@ return { 'folke/noice.nvim', event = 'VeryLazy', + -- lazy = false, + -- enabled = false, opts = { -- notify = { enabled = false }, lsp = { @@ -8,13 +10,14 @@ return { override = { -- override markdown rendering so that **cmp** and other plugins use **Treesitter** -- override the default lsp markdown formatter with Noice - -- ['vim.lsp.util.convert_input_to_markdown_lines'] = true, + ['vim.lsp.util.convert_input_to_markdown_lines'] = true, -- override the lsp markdown formatter with Noice -- ['vim.lsp.util.stylize_markdown'] = true, + -- ['cmp.entry.get_documentation'] = true, }, hover = { ---@type NoiceViewOptions - enabled = true, + enabled = false, silent = false, -- set to true to not show a message if hover is not available view = nil, -- when nil, use defaults from documentation opts = {}, -- merged with defaults from documentation @@ -34,13 +37,16 @@ return { -- defaults for hover and signature help documentation = { view = 'hover', - ---@type NoiceViewOptions + --- @type NoiceViewOptions opts = { lang = 'markdown', replace = true, render = 'plain', + -- render = function(buf, notif, hl, config) + -- self:render(buf, { offset = offset, highlight = true, messages = messages }) + -- end, format = { '{message}' }, - win_options = { concealcursor = 'n', conceallevel = 3 }, + win_options = { concealcursor = 'nvic', conceallevel = 3 }, }, }, }, @@ -108,4 +114,7 @@ return { 'MunifTanjim/nui.nvim', 'rcarriga/nvim-notify', }, + config = function(_, opts) + require('noice').setup(opts) + end, } |
