| 1 |
-- Copyright (c) 2020-2021 hoob3rt |
| 2 |
-- MIT license, see LICENSE for more details. |
| 3 |
local function get_short_cwd() |
| 4 |
return vim.fn.fnamemodify(vim.fn.getcwd(), ':~') |
| 5 |
end |
| 6 |
|
| 7 |
local M = {} |
| 8 |
|
| 9 |
M.sections = { |
| 10 |
lualine_a = { get_short_cwd }, |
| 11 |
} |
| 12 |
|
| 13 |
M.filetypes = { 'nerdtree' } |
| 14 |
|
| 15 |
return M |