From 97bb26e2f118d1df00a4f455adb0e15752b13741 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Thu, 6 Jul 2023 15:57:50 -0500 Subject: [PATCH] Update lsp restart and lualine --- lua/keymaps.lua | 2 +- lua/plugins/lualine.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 797dc5f..bb6f358 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -54,7 +54,7 @@ require("util").keymaps({ end, desc = "Show diagnostic list", }, - ["lz"] = { ":LspRestart", desc = "Restart LSP Server" }, + ["lz"] = { "e", desc = "Edit current file again / Restart LSP Server" }, [",uu"] = { ':let @u = trim(tolower(system("uuidgen")))au', desc = "Generate and insert UUID" }, ["b"] = { "b#", desc = "Switch to last buffer" }, }, diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 781c3bb..dcfe172 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -4,6 +4,7 @@ local function lsp_clients() clients[#clients + 1] = client.name end + table.sort(clients) return table.concat(clients, " • "), " " end @@ -21,6 +22,7 @@ local function langs() end end + table.sort(langs) return table.concat(langs, " • "), " " end @@ -55,6 +57,9 @@ return { }, }, }, + lualine_b = { + "mode" + } }, inactive_winbar = { lualine_a = {