context.lua 395 B

1234567891011121314151617181920
  1. local M = {
  2. "SmiteshP/nvim-navic",
  3. }
  4. M.config = function()
  5. require("nvim-navic").setup({
  6. icons = icons.kind,
  7. highlight = true,
  8. lsp = {
  9. auto_attach = true,
  10. },
  11. click = true,
  12. separator = " " .. icons.ui.ChevronRight .. " ",
  13. depth_limit = 0,
  14. depth_limit_indicator = "..",
  15. })
  16. vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
  17. end
  18. return M