6d11f9f508
* feat: allow lualine to ignore focus on specific filetypes. closes #710 * fix: extensions on ingnored_focus * perf: reuse api call results & use local variables instead of vim.g * make location & progress components behave in ingnored filetypes * fix: crash when last_focused win gets closed * fix: location & progress related broken tests
10 lines
236 B
Lua
10 lines
236 B
Lua
-- Copyright (c) 2020-2021 hoob3rt
|
|
-- MIT license, see LICENSE for more details.
|
|
local function location()
|
|
local line = vim.fn.line('.')
|
|
local col = vim.fn.col('.')
|
|
return string.format('%3d:%-2d', line, col)
|
|
end
|
|
|
|
return location
|