add nvim-navic
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
["tf"] = "terraform",
|
||||
},
|
||||
pattern = {
|
||||
[".*/playbooks/.*%.ya?ml"] = "yaml.ansible",
|
||||
[".*/roles/.*%.ya?ml"] = "yaml.ansible",
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons', branch = 'master' },
|
||||
dependencies = {
|
||||
{ 'nvim-tree/nvim-web-devicons', branch = 'master', },
|
||||
'SmiteshP/nvim-navic',
|
||||
},
|
||||
config = function()
|
||||
local colors = {
|
||||
black = '#282828',
|
||||
@@ -55,13 +58,9 @@ return {
|
||||
'filename',
|
||||
path = 4,
|
||||
},
|
||||
function()
|
||||
return require("nvim-treesitter").statusline({
|
||||
indicator_size = 70,
|
||||
type_patterns = { "class", "function", "method" },
|
||||
separator = " -> ",
|
||||
})
|
||||
end,
|
||||
{
|
||||
'navic',
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
15
lua/crentist/lazy/navic.lua
Normal file
15
lua/crentist/lazy/navic.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
'SmiteshP/nvim-navic',
|
||||
dependencies = {
|
||||
'neovim/nvim-lspconfig'
|
||||
},
|
||||
config = function ()
|
||||
local navic = require('nvim-navic')
|
||||
navic.setup({
|
||||
lsp = {
|
||||
auto_attach = true
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user