Merge branch 'main' into lean
This commit is contained in:
commit
71babb5425
1 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
-- https://qiita.com/uhooi/items/99aeff822d4870a8e269
|
||||||
|
local lsp_names = function ()
|
||||||
|
local clients = {}
|
||||||
|
for _, client in ipairs(vim.lsp.get_active_clients({ bufnr = 0})) do
|
||||||
|
table.insert(clients, client.name)
|
||||||
|
end
|
||||||
|
return ' ' .. table.concat(clients, ', ')
|
||||||
|
end
|
||||||
|
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
|
@ -21,7 +30,7 @@ require('lualine').setup {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = {'filetype'},
|
lualine_x = {lsp_names, 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'progress'},
|
||||||
lualine_z = {'location'}
|
lualine_z = {'location'}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue