From fce8f32313bcd283ace5346bf047d1d7936dac85 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 2 Sep 2023 19:50:28 -0500 Subject: [PATCH] refactor(nvim): use Vim icon for Neovim mode --- .../.config/nvim/lua/plugins/configs/lualine.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/lualine.lua b/dots/.config/nvim/lua/plugins/configs/lualine.lua index ee6d252e..bed99c57 100644 --- a/dots/.config/nvim/lua/plugins/configs/lualine.lua +++ b/dots/.config/nvim/lua/plugins/configs/lualine.lua @@ -4,17 +4,6 @@ return { "nvim-lualine/lualine.nvim", event = "VeryLazy", opts = function() - local present, lualine = pcall(require, "lualine") - if not present then - return - end - - -- Thanks to rockyzhang24 (github.com/rockyzhang24) - - local function simplifiedMode(str) - return "󰀘 " .. (str == "V-LINE" and "VL" or (str == "V-BLOCK" and "VB" or str:sub(1, 1))) - end - -- For location, show total lines local function customLocation(str) return string.gsub(str, "%w+", "%1" .. "/%%L", 1) @@ -156,8 +145,9 @@ return { sections = { lualine_a = { { - "mode", - fmt = simplifiedMode, + function() + return "" + end }, { color = {