diff --git a/lua/devil/configs/plugin/lualine.lua b/lua/devil/configs/plugin/lualine.lua index 1343275..6c7a265 100644 --- a/lua/devil/configs/plugin/lualine.lua +++ b/lua/devil/configs/plugin/lualine.lua @@ -150,8 +150,11 @@ local fileformat = { local lsp_info = { utils.get_lsp_info, - icon = " LSP:", - color = { fg = colors.yellow, gui = "bold" }, + icon = "󰒋 LSP:", + color = { + fg = colors.green, + gui = "bold", + }, } ins_section("mode", "lualine_a") diff --git a/lua/devil/utils/lsp_tool.lua b/lua/devil/utils/lsp_tool.lua index 47ca8d2..9ea9323 100644 --- a/lua/devil/utils/lsp_tool.lua +++ b/lua/devil/utils/lsp_tool.lua @@ -28,11 +28,16 @@ function M.async_formatting(bufnr) end) end +local proxy_lsps = { + ["null-ls"] = true, + ["efm"] = true, + ["emmet_ls"] = true, +} -- Determine whether the obtained LSP is a proxy LSP ---@param name string ---@return boolean local function not_proxy_lsp(name) - return name ~= "null-ls" and name ~= "efm" + return not proxy_lsps[name] end -- Format getted LSP name