Move navic and navbuddy config into own files

This commit is contained in:
Evie Litherland-Smith 2023-05-11 09:01:21 +01:00
parent 9567908cb7
commit be5bdb332c
2 changed files with 10 additions and 7 deletions

View file

@ -16,13 +16,8 @@ return {
{ "jose-elias-alvarez/null-ls.nvim", lazy = true }, { "jose-elias-alvarez/null-ls.nvim", lazy = true },
{ "mfussenegger/nvim-dap", lazy = true }, { "mfussenegger/nvim-dap", lazy = true },
{ "folke/neodev.nvim", dependencies = { "hrsh7th/nvim-cmp" }, lazy = true }, { "folke/neodev.nvim", dependencies = { "hrsh7th/nvim-cmp" }, lazy = true },
{ "SmiteshP/nvim-navic", lazy = true, config = true, opts = require "config.nvim-navic" }, { "SmiteshP/nvim-navic" },
{ { "SmiteshP/nvim-navbuddy" },
"SmiteshP/nvim-navbuddy",
dependencies = { "SmiteshP/nvim-navic", "MunifTanjim/nui.nvim" },
config = true,
opts = require "config.nvim-navbuddy",
},
}, },
config = function() config = function()
require "lsp.config" require "lsp.config"

View file

@ -0,0 +1,8 @@
return {
"SmiteshP/nvim-navbuddy",
dependencies = { "SmiteshP/nvim-navic", "MunifTanjim/nui.nvim" },
cmd = { "Navbuddy" },
init = function() vim.keymap.set("n", "<leader>na", "<cmd>Navbuddy<cr>") end,
config = true,
opts = require "config.nvim-navbuddy",
}