.
This commit is contained in:
+1
-1
@@ -543,7 +543,7 @@ if HasPlug("vim-airline")
|
||||
:AirlineRefresh!
|
||||
endfunction
|
||||
|
||||
autocmd! CursorMoved * call s:airline_refresh(0)
|
||||
" autocmd! CursorMoved * call s:airline_refresh(0)
|
||||
|
||||
endfunction
|
||||
|
||||
|
||||
+6
-1
@@ -221,6 +221,9 @@ local function telescope_config()
|
||||
["<CR>"] = function(bufnr)
|
||||
local selection = action_state.get_selected_entry()
|
||||
actions.select_default()
|
||||
local bg = vim.o.background
|
||||
local config = vim.g.my_config
|
||||
vim.fn.SetTheme(bg, selection.value)
|
||||
end,
|
||||
},
|
||||
},
|
||||
@@ -400,8 +403,10 @@ local function lualine_config()
|
||||
local msg = "lsp:" .. id
|
||||
if state == "starting" then
|
||||
return msg .. " %#CocstatusLoading#" .. loading[math.floor(loadidx / (step * (speed / 100))) + 1]
|
||||
elseif state == "running" then
|
||||
return msg .. " %#CocstatusSucceed#✔"
|
||||
end
|
||||
return msg .. " %#CocstatusSucceed#✔"
|
||||
return ''
|
||||
end
|
||||
|
||||
local function debugstats()
|
||||
|
||||
@@ -252,16 +252,17 @@ if HasPlug('vim-airline')
|
||||
if state == "starting"
|
||||
let s:coc_lsp_loading = 1
|
||||
return msg . " " . loading[loadidx/(speed/10)] . " "
|
||||
elseif state == "running"
|
||||
if exists('s:coc_lsp_loading')
|
||||
unlet s:coc_lsp_loading
|
||||
endif
|
||||
return msg . " ✔ "
|
||||
endif
|
||||
if exists('s:coc_lsp_loading')
|
||||
unlet s:coc_lsp_loading
|
||||
endif
|
||||
return msg . " ✔ "
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
function! AirlineBufferNumber()
|
||||
return len(g:index_to_buffer)
|
||||
endfunction
|
||||
|
||||
endif
|
||||
""" AIRLINE EXTENSIONS END """
|
||||
|
||||
Reference in New Issue
Block a user