2021-03-11 00:32:13 +01:00
|
|
|
-- Copyright (c) 2020-2021 hoob3rt
|
|
|
|
-- MIT license, see LICENSE for more details.
|
2021-04-12 05:03:25 -07:00
|
|
|
local function get_short_cwd() return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') end
|
2021-08-27 01:01:42 +06:00
|
|
|
local empty = {function() return ' ' end, left_padding=0, right_padding=0}
|
2021-04-12 05:03:25 -07:00
|
|
|
|
2021-03-11 00:32:13 +01:00
|
|
|
local M = {}
|
|
|
|
|
2021-08-27 01:01:42 +06:00
|
|
|
M.sections = {
|
|
|
|
lualine_a = {get_short_cwd},
|
|
|
|
lualine_c = {empty}
|
|
|
|
}
|
2021-03-11 00:32:13 +01:00
|
|
|
|
2021-03-16 00:37:46 +01:00
|
|
|
M.filetypes = {'nerdtree'}
|
2021-03-11 00:32:13 +01:00
|
|
|
|
|
|
|
return M
|