From ad4ce28eecdc1601493a29ef5569eef59740ab2f Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Sat, 18 Nov 2023 17:23:12 -0700 Subject: [PATCH] Comments/details on evil.lua. --- jrpotter/neovim/lua/init/evil.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/jrpotter/neovim/lua/init/evil.lua b/jrpotter/neovim/lua/init/evil.lua index 5c1f88e..f3f447e 100644 --- a/jrpotter/neovim/lua/init/evil.lua +++ b/jrpotter/neovim/lua/init/evil.lua @@ -1,9 +1,7 @@ --- Original configuration: --- Author: shadmansaleh --- Credit: glepnir +-- Original configuration: shadmansaleh/glepnir. +-- Modifications include LSP and DAP information. local lualine = require('lualine') --- Color table for highlights local colors = { bg = '#202328', fg = '#bbc2cf', @@ -143,14 +141,13 @@ ins_left { }, } --- Insert mid section. You can make any number of sections in neovim :) +-- Insert mid section. You can make any number of sections in neovim. ins_left { function() return '%=' end, } --- Add first active LSP client. local function get_active_lsp() local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') local clients = vim.lsp.get_active_clients() @@ -195,10 +192,9 @@ ins_left { end, } --- Add components to right sections ins_right { - 'o:encoding', -- option component same as &encoding in viml - fmt = string.upper, -- I'm not sure why it's upper case either ;) + 'o:encoding', -- same as &encoding in VimL. + fmt = string.upper, cond = conditions.hide_in_width, color = { fg = colors.green, gui = 'bold' }, }