e917677a3a
Currently, lualine gets the encoding using this: [[%{strlen(&fenc)?&fenc:&enc}]] My suggestion is to change this string to `vim.opt.fileencoding:get()` This suggestion is because I would like to use the option "fmt = string.upper", and with the current string it doesn't work, but using vim.opt function correctly
8 lines
164 B
Lua
8 lines
164 B
Lua
-- Copyright (c) 2020-2021 hoob3rt
|
|
-- MIT license, see LICENSE for more details.
|
|
local function encoding()
|
|
return vim.opt.fileencoding:get()
|
|
end
|
|
|
|
return encoding
|