This commit is contained in:
foozzi 2024-07-28 17:48:16 +02:00
parent 3364fcbd57
commit 6e16a81d2c
4 changed files with 98 additions and 91 deletions

View file

@ -13,8 +13,7 @@ local config = function()
focusable = true,
style = "minimal",
border = "rounded",
source = "always",
source = true,
header = "",
prefix = "",
},

View file

@ -42,8 +42,9 @@ ins_right({
-- Lsp server name .
function()
local msg = "No Active Lsp"
local buf_ft = vim.api.nvim_buf_get_option(0, "filetype")
local clients = vim.lsp.get_active_clients()
-- local buf_ft = vim.api.nvim_buf_get_option(0, "filetype")
local buf_ft = vim.bo.filetype
local clients = vim.lsp.get_clients()
if next(clients) == nil then
return msg
end