28072024
This commit is contained in:
parent
3364fcbd57
commit
6e16a81d2c
4 changed files with 98 additions and 91 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue