lualine.nvim/lua/lualine/extensions/nerdtree.lua

24 lines
366 B
Lua
Raw Normal View History

2021-03-10 23:32:13 +00:00
-- Copyright (c) 2020-2021 hoob3rt
-- MIT license, see LICENSE for more details.
local function get_short_cwd()
return vim.fn.fnamemodify(vim.fn.getcwd(), ':~')
end
local empty = {
function()
return ' '
end,
padding = 0,
}
2021-03-10 23:32:13 +00:00
local M = {}
M.sections = {
lualine_a = { get_short_cwd },
lualine_x = { empty },
}
2021-03-10 23:32:13 +00:00
M.filetypes = { 'nerdtree' }
2021-03-10 23:32:13 +00:00
return M