diff --git a/home/tui/config/nvim/lua/plugins/lualine.lua b/home/tui/config/nvim/lua/plugins/lualine.lua index 7a02f9e0..c0c70daf 100644 --- a/home/tui/config/nvim/lua/plugins/lualine.lua +++ b/home/tui/config/nvim/lua/plugins/lualine.lua @@ -1,6 +1,6 @@ return { "nvim-lualine/lualine.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, + dependencies = { "nvim-tree/nvim-web-devicons", "folke/noice.nvim" }, event = { "BufEnter" }, config = true, opts = { @@ -13,7 +13,7 @@ return { sections = { lualine_a = { "mode" }, lualine_b = { "filename", { "branch", icon = "󰊢" }, "diff" }, - lualine_c = { "diagnostics" }, + lualine_c = { "diagnostics", "require('noice').api.status.lsp.get_hl()" }, lualine_x = { "filetype", "fileformat", "encoding" }, lualine_y = { "progress" }, lualine_z = { "selectioncount", "location" }, diff --git a/home/tui/config/nvim/lua/plugins/noice.lua b/home/tui/config/nvim/lua/plugins/noice.lua index c95a8651..50fcfa8a 100644 --- a/home/tui/config/nvim/lua/plugins/noice.lua +++ b/home/tui/config/nvim/lua/plugins/noice.lua @@ -7,6 +7,15 @@ return { config = true, opts = { lsp = { + progress = { + enabled = true, + format = { + "({data.progress.percentage}%) ", + { "{spinner} ", hl_group = "NoiceLspProgressSpinner" }, + { "{data.progress.title} ", hl_group = "NoiceLspProgressTitle" }, + { "{data.progress.client} ", hl_group = "NoiceLspProgressClient" }, + }, + }, -- override markdown rendering so that **cmp** and other plugins use **Treesitter** override = { ["vim.lsp.util.convert_input_to_markdown_lines"] = true, @@ -21,6 +30,8 @@ return { win_options = { winblend = 0 }, }, }, + status = { lsp = { event = "lsp" } }, + routes = { { view = "mini", filter = { event = "lsp" }, opts = { skip = true } } }, -- you can enable a preset for easier configuration presets = { bottom_search = false, -- use a classic bottom cmdline for search