NvChad / NvChad

Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.
https://nvchad.com/
GNU General Public License v3.0
24.83k stars 2.13k forks source link

Symbols under buffer like in astronvim/lunarvim #2787

Closed Yakui420 closed 6 months ago

Yakui420 commented 6 months ago

1713090029711626 Is it possible to add these icons to nvchad too? Is there an option for that?

UnderGrounder96 commented 6 months ago

These are called breadcrumbs, I think.

You can try and check how other projects implemented it. I bet they use some plugin, in the past I used LSPSaga but ended up removing.

Links: https://nvimdev.github.io/lspsaga/breadcrumbs/ https://github.com/UnderGrounder96/nvim-configs/commit/c48b8a4fa68bb5018e4fa3d53bea3f3759e5137d

siduck commented 6 months ago
  {
    "SmiteshP/nvim-navic",
    event = "LspAttach",
    config = function()
      dofile(vim.g.base46_cache .. "navic")

      require("nvim-navic").setup {
        highlight = true,
        lsp = { auto_attach = true },
      }

      vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
    end,
  },

make sure you include "navic" in the integrations table of base46