feat: add aerial, remove hardtime
This commit is contained in:
parent
546b3ffb96
commit
923409e332
4 changed files with 19 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ return {
|
|||
telemetry = { enabled = false },
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } },
|
||||
runtime = {
|
||||
version = "LuaJIT",
|
||||
},
|
||||
|
|
|
|||
16
lua/weeheavy/plugins/aerial.lua
Normal file
16
lua/weeheavy/plugins/aerial.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
"stevearc/aerial.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("aerial").setup({
|
||||
-- optionally use on_attach to set keymaps when aerial has attached to a buffer
|
||||
on_attach = function(bufnr)
|
||||
-- Jump forwards/backwards with '{' and '}'
|
||||
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
|
||||
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
|
||||
end,
|
||||
})
|
||||
-- You probably also want to set a keymap to toggle aerial
|
||||
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
|
||||
end,
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ return {
|
|||
opts = {
|
||||
modes = {
|
||||
search = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
label = {
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ return {
|
|||
lazy = false,
|
||||
dependencies = { "MunifTanjim/nui.nvim" },
|
||||
opts = {},
|
||||
enabled = false,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue