mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 12:48:01 +00:00
[neovim] Don't show file info in lualine when current buffer is neo-tree
This commit is contained in:
parent
559db5cc5a
commit
81825f2610
@ -80,7 +80,17 @@ require("lualine").setup({
|
|||||||
lualine_b = { "branch", venv },
|
lualine_b = { "branch", venv },
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
diagnostics,
|
diagnostics,
|
||||||
{ "filename", path = 1 },
|
{
|
||||||
|
"filename",
|
||||||
|
path = 1,
|
||||||
|
cond = function()
|
||||||
|
if vim.bo.filetype == "neo-tree" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
},
|
||||||
lsp_progress,
|
lsp_progress,
|
||||||
{
|
{
|
||||||
require("noice").api.status.search.get,
|
require("noice").api.status.search.get,
|
||||||
@ -94,7 +104,7 @@ require("lualine").setup({
|
|||||||
spaces,
|
spaces,
|
||||||
"encoding",
|
"encoding",
|
||||||
filetype,
|
filetype,
|
||||||
{ get_schema, separator = "" },
|
{ get_schema, separator = "" },
|
||||||
},
|
},
|
||||||
lualine_y = { "progress" },
|
lualine_y = { "progress" },
|
||||||
lualine_z = { "location" },
|
lualine_z = { "location" },
|
||||||
|
Loading…
Reference in New Issue
Block a user