2021-03-10 23:32:13 +00:00
|
|
|
-- Copyright (c) 2020-2021 hoob3rt
|
|
|
|
-- MIT license, see LICENSE for more details.
|
2021-09-03 18:28:20 +00:00
|
|
|
local function get_short_cwd()
|
|
|
|
return vim.fn.fnamemodify(vim.fn.getcwd(), ':~')
|
|
|
|
end
|
2021-04-12 12:03:25 +00:00
|
|
|
|
2021-03-10 23:32:13 +00:00
|
|
|
local M = {}
|
|
|
|
|
2021-08-26 19:01:42 +00:00
|
|
|
M.sections = {
|
2021-09-03 18:28:20 +00:00
|
|
|
lualine_a = { get_short_cwd },
|
2021-08-26 19:01:42 +00:00
|
|
|
}
|
2021-03-10 23:32:13 +00:00
|
|
|
|
2021-09-03 18:28:20 +00:00
|
|
|
M.filetypes = { 'nerdtree' }
|
2021-03-10 23:32:13 +00:00
|
|
|
|
|
|
|
return M
|