move relativ path to incline
This commit is contained in:
@@ -9,7 +9,7 @@ return {
|
|||||||
margin = { horizontal = 0 },
|
margin = { horizontal = 0 },
|
||||||
},
|
},
|
||||||
render = function(props)
|
render = function(props)
|
||||||
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ':t')
|
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ':.')
|
||||||
if filename == '' then
|
if filename == '' then
|
||||||
filename = '[No Name]'
|
filename = '[No Name]'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -30,11 +30,6 @@ return {
|
|||||||
{
|
{
|
||||||
'getcwd',
|
'getcwd',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'filename',
|
|
||||||
path = 1,
|
|
||||||
file_status = true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
function() return require('nvim-navic').get_location() end,
|
function() return require('nvim-navic').get_location() end,
|
||||||
cond = function() return package.loaded['nvim-navic'] and require('nvim-navic').is_available() end,
|
cond = function() return package.loaded['nvim-navic'] and require('nvim-navic').is_available() end,
|
||||||
|
|||||||
Reference in New Issue
Block a user