added navic
This commit is contained in:
@@ -88,6 +88,11 @@ local on_attach = function(client, bufnr)
|
||||
if client.server_capabilities.documentHighlightProvider then
|
||||
document_highlight(bufnr)
|
||||
end
|
||||
if client.server_capabilities.documentSymbolProvider then
|
||||
print('attach navic')
|
||||
local navic = require("nvim-navic")
|
||||
navic.attach(client, bufnr)
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
@@ -97,11 +102,13 @@ return {
|
||||
'p00f/clangd_extensions.nvim',
|
||||
'Fildo7525/pretty_hover',
|
||||
'creativenull/efmls-configs-nvim',
|
||||
'SmiteshP/nvim-navic',
|
||||
},
|
||||
version = nil,
|
||||
branch = 'master',
|
||||
config = function()
|
||||
local lspconfig = require('lspconfig')
|
||||
require("nvim-navic").setup({})
|
||||
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
capabilities.workspace = {
|
||||
|
||||
Reference in New Issue
Block a user