diff --git a/lua/plugins/alpha.lua b/lua/plugins/alpha.lua index 32b7a49..0aa8388 100644 --- a/lua/plugins/alpha.lua +++ b/lua/plugins/alpha.lua @@ -22,16 +22,16 @@ return { -- stylua: ignore start dashboard.section.buttons.val = { ---@diagnostic disable: param-type-mismatch - dashboard.button("f", " " .. " Find file", LazyVim.pick()), - dashboard.button("n", " " .. " New file", [[ ene startinsert ]]), - dashboard.button("r", " " .. " Recent files", LazyVim.pick("oldfiles")), - dashboard.button("g", " " .. " Grep text", LazyVim.pick("live_grep")), - dashboard.button("z", " " .. " LazyGit", " LazyGit "), - dashboard.button("c", " " .. " Config", LazyVim.pick.config_files()), + dashboard.button("f", " " .. " Find file", LazyVim.pick()), + dashboard.button("n", " " .. " New file", [[ ene startinsert ]]), + dashboard.button("r", " " .. " Recent files", LazyVim.pick("oldfiles")), + dashboard.button("g", " " .. " Grep text", LazyVim.pick("live_grep")), + dashboard.button("z", " " .. " LazyGit", " LazyGit "), + dashboard.button("c", " " .. " Config", LazyVim.pick.config_files()), dashboard.button("s", " " .. " Restore Session", [[ lua require("persistence").load() ]]), - dashboard.button("S", "󰢹 " .. " Remote Session", [[ lua require("config.rootiest").load_remote() ]]), - dashboard.button("l", "󰒲 " .. " Lazy", " Lazy "), - dashboard.button("q", " " .. " Quit", " qa "), + dashboard.button("S", "󰢹 " .. " Remote Session", [[ lua require("config.rootiest").load_remote() ]]), + dashboard.button("l", "󰒲 " .. " Lazy", " Lazy "), + dashboard.button("q", " " .. " Quit", " qa "), } -- stylua: ignore end for _, button in ipairs(dashboard.section.buttons.val) do @@ -66,12 +66,12 @@ return { local stats = require("lazy").stats() local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100) dashboard.section.footer.val = "⚡ Neovim loaded " - .. stats.loaded - .. "/" - .. stats.count - .. " plugins in " - .. ms - .. "ms" + .. stats.loaded + .. "/" + .. stats.count + .. " plugins in " + .. ms + .. "ms" pcall(vim.cmd.AlphaRedraw) end, }) diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 86ee055..061edbd 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -10,12 +10,19 @@ return { automatic_installation = true, }, }, + { + "neovim/nvim-lspconfig", + opts = { + setup = { + clangd = function(_, opts) + opts.capabilities.offsetEncoding = { "utf-16" } + end, + }, + }, + }, { -- Yanky import = "lazyvim.plugins.extras.coding.yanky", }, - { -- Mini Surround - import = "lazyvim.plugins.extras.coding.mini-surround", - }, { -- VSCode import = "lazyvim.plugins.extras.vscode", }, @@ -61,4 +68,9 @@ return { mappings = data.keys.splitjoin, }, }, + { -- mini-surround + "echasnovski/mini.surround", + opts = {}, + keys = data.keys.surround, + }, }