diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-05-07 15:24:13 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-05-07 15:24:13 -0500 |
commit | 386edc3844c355cd2357a5e5c4cf2732123182d3 (patch) | |
tree | a526a9d541fe0c6fc6f06804223d16511ce76d1f | |
parent | 00d5aeb418d5ceb1cfc8f7fd4292890e41e2942d (diff) |
perf(nvim): remove lualine
I realized I did not use/look at any of the components it added. They
were entirely for "show".
-rw-r--r-- | nvim/.config/nvim/lazy-lock.json | 1 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/plugins/lualine.lua | 121 |
2 files changed, 0 insertions, 122 deletions
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 853829e..38fe1f3 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -23,7 +23,6 @@ "gruvbox.nvim": { "branch": "main", "commit": "df149bccb19a02c5c2b9fa6ec0716f0c0487feb0" }, "indent-blankline.nvim": { "branch": "master", "commit": "018bd04d80c9a73d399c1061fa0c3b14a7614399" }, "lazy.nvim": { "branch": "main", "commit": "ceb413678dfcf3d5455208959185e3db1f7892c7" }, - "lualine.nvim": { "branch": "master", "commit": "84ffb80e452d95e2c46fa29a98ea11a240f7843e" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "cec0e6dd534ade486b5eeb59ebcfa8d51c3e8c5e" }, "mason-null-ls.nvim": { "branch": "main", "commit": "cfbd83909cbc56e2f07cb3f8a03157e069c5c91c" }, "mason-nvim-dap.nvim": { "branch": "main", "commit": "ab69c2e7da555b30f60b69c3614c0c142f2a70cc" }, diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/lualine.lua b/nvim/.config/nvim/lua/tobyvin/plugins/lualine.lua deleted file mode 100644 index ce35118..0000000 --- a/nvim/.config/nvim/lua/tobyvin/plugins/lualine.lua +++ /dev/null @@ -1,121 +0,0 @@ -local diagnostic = require("tobyvin.utils.diagnostic") - -local M = { - "nvim-lualine/lualine.nvim", - cond = not vim.g.started_by_firenvim, - event = "VeryLazy", - opts = { - options = { - component_separators = "", - section_separators = "", - ignore_focus = { - "TelescopePrompt", - "TelescopeResults", - }, - }, - sections = { - lualine_a = { - { - "mode", - fmt = function(str) - return str:sub(1, 1) - end, - }, - }, - lualine_b = { - "branch", - { - "diff", - source = function() - local gitsigns = vim.b["gitsigns_status_dict"] - if gitsigns then - return { - added = gitsigns.added, - modified = gitsigns.changed, - removed = gitsigns.removed, - } - end - end, - padding = { left = 0, right = 1 }, - }, - }, - lualine_c = { - { - "diagnostics", - source = { diagnostic.count }, - symbols = { - error = diagnostic.signs.error.text, - warn = diagnostic.signs.warn.text, - info = diagnostic.signs.info.text, - hint = diagnostic.signs.hint.text, - }, - - diagnostics_color = { - error = diagnostic.signs.error.hl, - warn = diagnostic.signs.warn.hl, - info = diagnostic.signs.info.hl, - hint = diagnostic.signs.hint.hl, - }, - update_in_insert = true, - }, - }, - lualine_x = { - "encoding", - "fileformat", - "filetype", - }, - }, - inactive_sections = { - lualine_c = { - { - "filename", - path = 1, - }, - }, - lualine_x = { - "filetype", - "location", - }, - }, - tabline = { - lualine_b = { - vim.loop.cwd, - }, - lualine_c = { - { - "filename", - path = 1, - shorten = true, - }, - }, - lualine_y = { - "tabs", - }, - }, - extensions = { - "fzf", - "man", - "nvim-dap-ui", - "symbols-outline", - "quickfix", - "toggleterm", - }, - }, -} - -function M:deactivate() - require("lualine").setup({ - options = { - refresh = { - statusline = 0, - tabline = 0, - winbar = 0, - }, - }, - }) - vim.opt_local.statusline = "" - vim.opt_local.winbar = "" - vim.opt_local.tabline = "" -end - -return M |