Update lsp restart and lualine
This commit is contained in:
parent
bcb3c76419
commit
97bb26e2f1
2 changed files with 6 additions and 1 deletions
|
@ -54,7 +54,7 @@ require("util").keymaps({
|
||||||
end,
|
end,
|
||||||
desc = "Show diagnostic list",
|
desc = "Show diagnostic list",
|
||||||
},
|
},
|
||||||
["<leader>lz"] = { ":LspRestart<CR>", desc = "Restart LSP Server" },
|
["<leader>lz"] = { "<cmd>e<CR>", desc = "Edit current file again / Restart LSP Server" },
|
||||||
["<leader>,uu"] = { ':let @u = trim(tolower(system("uuidgen")))<cr>a<C-r>u', desc = "Generate and insert UUID" },
|
["<leader>,uu"] = { ':let @u = trim(tolower(system("uuidgen")))<cr>a<C-r>u', desc = "Generate and insert UUID" },
|
||||||
["<leader>b"] = { "<cmd>b#<cr>", desc = "Switch to last buffer" },
|
["<leader>b"] = { "<cmd>b#<cr>", desc = "Switch to last buffer" },
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,6 +4,7 @@ local function lsp_clients()
|
||||||
clients[#clients + 1] = client.name
|
clients[#clients + 1] = client.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.sort(clients)
|
||||||
return table.concat(clients, " • "), " "
|
return table.concat(clients, " • "), " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -21,6 +22,7 @@ local function langs()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.sort(langs)
|
||||||
return table.concat(langs, " • "), " "
|
return table.concat(langs, " • "), " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -55,6 +57,9 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
lualine_b = {
|
||||||
|
"mode"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
inactive_winbar = {
|
inactive_winbar = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue