From 677193fa3a74b06067abcf24d6ece11e4d817466 Mon Sep 17 00:00:00 2001 From: PowerUser64 <blakelysnorth@gmail.com> Date: Sun, 26 Dec 2021 21:32:36 -0800 Subject: [PATCH] nvim: lualine: remove lsp indicator --- .config/nvim/lua/blake/other.lua | 40 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.config/nvim/lua/blake/other.lua b/.config/nvim/lua/blake/other.lua index b931111..2c97bb3 100644 --- a/.config/nvim/lua/blake/other.lua +++ b/.config/nvim/lua/blake/other.lua @@ -350,26 +350,26 @@ M.lualine = function() end, } - ins_left { - -- 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() - if next(clients) == nil then - return msg - end - for _, client in ipairs(clients) do - local filetypes = client.config.filetypes - if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then - return client.name - end - end - return msg - end, - icon = ' LSP:', - color = { fg = '#ffffff', gui = 'bold' }, - } + -- ins_left { + -- -- 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() + -- if next(clients) == nil then + -- return msg + -- end + -- for _, client in ipairs(clients) do + -- local filetypes = client.config.filetypes + -- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then + -- return client.name + -- end + -- end + -- return msg + -- end, + -- icon = ' LSP:', + -- color = { fg = '#ffffff', gui = 'bold' }, + -- } -- Add components to right sections ins_right {