Skip to content

Commit

Permalink
feat(outline.nvim): migrate "aerial.nvim" to "outline.nvim"
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Dec 4, 2024
1 parent 6b20aec commit 916b12b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
8 changes: 8 additions & 0 deletions lua/configs/hedyhli/outline-nvim/config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local constants = require("builtin.constants")
local layout = require("builtin.utils.layout")

require("outline").setup({
outline_window = {
width = constants.window.layout.sidebar.scale * 100,
},
})
7 changes: 7 additions & 0 deletions lua/configs/hedyhli/outline-nvim/keys.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
local set_lazy_key = require("builtin.utils.keymap").set_lazy_key

local M = {
set_lazy_key("n", "<leader>ol", "<cmd>Outline<cr>", { desc = "Toggle outline" }),
}

return M
13 changes: 5 additions & 8 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,19 +328,16 @@ local M = {
},
-- Structure outlines
{
"stevearc/aerial.nvim",
"hedyhli/outline.nvim",
cmd = {
"AerialToggle",
"AerialOpen",
"AerialOpenAll",
"AerialClose",
"AerialInfo",
"Outline",
"OutlineOpen",
},
dependencies = {
"neovim/nvim-lspconfig",
},
keys = lua_keys("stevearc/aerial.nvim"),
config = lua_config("stevearc/aerial.nvim"),
keys = lua_keys("hedyhli/outline.nvim"),
config = lua_config("hedyhli/outline.nvim"),
},
-- Open Url
{
Expand Down

0 comments on commit 916b12b

Please sign in to comment.