Comments/details on evil.lua.

main
Joshua Potter 2023-11-18 17:23:12 -07:00
parent 203d32e926
commit ad4ce28eec
1 changed files with 5 additions and 9 deletions

View File

@ -1,9 +1,7 @@
-- Original configuration: -- Original configuration: shadmansaleh/glepnir.
-- Author: shadmansaleh -- Modifications include LSP and DAP information.
-- Credit: glepnir
local lualine = require('lualine') local lualine = require('lualine')
-- Color table for highlights
local colors = { local colors = {
bg = '#202328', bg = '#202328',
fg = '#bbc2cf', 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 { ins_left {
function() function()
return '%=' return '%='
end, end,
} }
-- Add first active LSP client.
local function get_active_lsp() local function get_active_lsp()
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_active_clients() local clients = vim.lsp.get_active_clients()
@ -195,10 +192,9 @@ ins_left {
end, end,
} }
-- Add components to right sections
ins_right { ins_right {
'o:encoding', -- option component same as &encoding in viml 'o:encoding', -- same as &encoding in VimL.
fmt = string.upper, -- I'm not sure why it's upper case either ;) fmt = string.upper,
cond = conditions.hide_in_width, cond = conditions.hide_in_width,
color = { fg = colors.green, gui = 'bold' }, color = { fg = colors.green, gui = 'bold' },
} }