From b9e152aa509f3c43c291be5717db57f6c86cb999 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 19 Jul 2023 23:06:29 +0300 Subject: [PATCH] feat: allow Navbuddy to automatically attach to the Lsp server --- modules/ui/breadcrumbs/config.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/ui/breadcrumbs/config.nix b/modules/ui/breadcrumbs/config.nix index 38e0703..8ea2d7e 100644 --- a/modules/ui/breadcrumbs/config.nix +++ b/modules/ui/breadcrumbs/config.nix @@ -16,13 +16,9 @@ in { vim.luaConfigRC.breadcrumbs = nvim.dag.entryAfter ["lspconfig"] '' local navbuddy = require("nvim-navbuddy") + local navic = require("nvim-navic") local actions = require("nvim-navbuddy.actions") - require("lspconfig").clangd.setup { - on_attach = function(client, bufnr) - navbuddy.attach(client, bufnr) - end - } navbuddy.setup { window = { @@ -141,7 +137,7 @@ in { ["g?"] = actions.help(), -- Open mappings help window }, lsp = { - auto_attach = false, -- If set to true, you don't need to manually use attach function + auto_attach = true, -- If set to true, you don't need to manually use attach function preference = nil, -- list of lsp server names in order of preference }, source_buffer = {