refactor(navic): move navic to ui
This commit is contained in:
2 files changed
+14
-4
No files matched your search
@@ -9,7 +9,6 @@ return {
|
||||
"mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"SmiteshP/nvim-navic",
|
||||
},
|
||||
---@type lspconfig.options
|
||||
servers = nil,
|
||||
@@ -18,9 +17,6 @@ return {
|
||||
require("lazyvim.util").on_attach(function(client, buffer)
|
||||
require("lazyvim.plugins.lsp.format").on_attach(client, buffer)
|
||||
require("lazyvim.plugins.lsp.keymaps").on_attach(client, buffer)
|
||||
if client.server_capabilities.documentSymbolProvider then
|
||||
require("nvim-navic").attach(client, buffer)
|
||||
end
|
||||
end)
|
||||
|
||||
-- diagnostics
|
||||
|
||||
@@ -287,6 +287,20 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
-- lsp symbol navigation for lualine
|
||||
{
|
||||
"SmiteshP/nvim-navic",
|
||||
init = function()
|
||||
vim.g.navic_silence = true
|
||||
require("lazyvim.util").on_attach(function(client, buffer)
|
||||
if client.server_capabilities.documentSymbolProvider then
|
||||
require("nvim-navic").attach(client, buffer)
|
||||
end
|
||||
end)
|
||||
end,
|
||||
config = { separator = " ", highlight = true, depth_limit = 5 },
|
||||
},
|
||||
|
||||
-- icons
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
|
||||
|
||||
Reference in new issue
Block a user