diff --git a/lua/configs/hedyhli/outline-nvim/config.lua b/lua/configs/hedyhli/outline-nvim/config.lua new file mode 100644 index 00000000..18280440 --- /dev/null +++ b/lua/configs/hedyhli/outline-nvim/config.lua @@ -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, + }, +}) diff --git a/lua/configs/hedyhli/outline-nvim/keys.lua b/lua/configs/hedyhli/outline-nvim/keys.lua new file mode 100644 index 00000000..db3cd49c --- /dev/null +++ b/lua/configs/hedyhli/outline-nvim/keys.lua @@ -0,0 +1,7 @@ +local set_lazy_key = require("builtin.utils.keymap").set_lazy_key + +local M = { + set_lazy_key("n", "ol", "Outline", { desc = "Toggle outline" }), +} + +return M diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 5de9bc97..f2da0512 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -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 {