lsp stuff
This commit is contained in:
@ -5,9 +5,6 @@ local split = function (inputstr, sep)
|
||||
end
|
||||
return t
|
||||
end
|
||||
local function getWords()
|
||||
return tostring(vim.fn.wordcount().words)
|
||||
end
|
||||
local function getCitc()
|
||||
local fname = vim.api.nvim_buf_get_name(0)
|
||||
if string.find(fname, '/google/src/cloud/', 1, true) then
|
||||
@ -15,7 +12,7 @@ local function getCitc()
|
||||
return parts[5]
|
||||
end
|
||||
end
|
||||
function isCiderLspAttached()
|
||||
local function isCiderLspAttached()
|
||||
if vim.b['is_cider_lsp_attached'] then
|
||||
if vim.b['is_cider_lsp_attached'] == 'yes' then
|
||||
return '✓'
|
||||
@ -26,6 +23,7 @@ function isCiderLspAttached()
|
||||
return ''
|
||||
end
|
||||
end
|
||||
|
||||
local function getLightbulb()
|
||||
return require('nvim-lightbulb').get_status_text()
|
||||
end
|
||||
@ -56,7 +54,7 @@ require('lualine').setup {
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', getCitc, isCiderLspAttached},
|
||||
lualine_c = {'filename', {"aerial", depth=-1}, getLightbulb},
|
||||
lualine_c = {'filename', 'lsp_progress', getLightbulb},
|
||||
lualine_x = {
|
||||
{ 'diagnostics', sources = {"nvim_lsp"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||
'encoding',
|
||||
@ -69,7 +67,7 @@ require('lualine').setup {
|
||||
lualine_a = {{'tabs', mode = 1}},
|
||||
-- lualine_b = {'branch'},
|
||||
-- lualine_c = {'filename'},
|
||||
lualine_x = {
|
||||
lualine_c = {
|
||||
{ 'diagnostics', sources = {"nvim_lsp", "nvim_workspace_diagnostic"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||
},
|
||||
-- lualine_y = { getLGTMs }
|
||||
|
Reference in New Issue
Block a user