diff --git a/init.lua b/init.lua index e13179e..fb1634f 100644 --- a/init.lua +++ b/init.lua @@ -229,9 +229,14 @@ require('lazy').setup({ }, { - 'nvim-treesitter/nvim-treesitter-context', + 'SmiteshP/nvim-navic', opts = { - enable = true, + lsp = { + auto_attach = true + } + }, + dependencies = { + { 'nvim-lspconfig' } } }, { @@ -245,6 +250,9 @@ require('lazy').setup({ component_separators = '|', section_separators = '', }, + sections = { + lualine_c = { 'navic' } + }, }, },