nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.03k stars 464 forks source link

Disable lualine on terminal #1180

Open rajvatsal opened 8 months ago

rajvatsal commented 8 months ago

I want to disable lualine whenever I switch to terminal buffer. I tried to do this: opts { disabled_buftypes = { 'terminal' } }

Doesn't work. I could disable luline for nvim-tree by: opts { disabled_filetypes = { 'NvimTree' } }

whoop-t commented 7 months ago

I cant get this working for neotree

        options = {
          -- Its not using this theme current, idk why yet. Loading issue?
          theme = "tokyonight",
          component_separators = "|",
          disabled_filetypes = {
            statusline = {
              "dashboard",
              "aerial",
              "dapui_.",
              "neo%-tree",
              "NvimTree",
            },
          },
          section_separators = { left = "", right = "" },
        },
mCassy commented 1 month ago

I cant get this working for neotree

        options = {
          -- Its not using this theme current, idk why yet. Loading issue?
          theme = "tokyonight",
          component_separators = "|",
          disabled_filetypes = {
            statusline = {
              "dashboard",
              "aerial",
              "dapui_.",
              "neo%-tree",
              "NvimTree",
            },
          },
          section_separators = { left = "", right = "" },
        },

Hey, that's probably because u have that "%" char. Got it working (no lualine in neo-tree)

return {
    "nvim-lualine/lualine.nvim",
    event = "ColorScheme",
    config = function()
        require("lualine").setup({
            options = {
                theme = "kanagawa",
                disabled_filetypes = {
                    statusline = {
                        "dashboard",
                        "neo-tree",
                    },
                },
            },
        })
    end,
}