jiriks74
65dea4ed80
Added: - [aerial.nvim](https://github.com/stevearc/aerial.nvim) - [better-escape.nvim](https://github.com/max397574/better-escape.nvim) - [dressing.nvim](https://github.com/stevearc/dressing.nvim) - [ident-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) - [nvim-notify](https://github.com/rcarriga/nvim-notify) - [todo-comments.nvim](https://github.com/folke/todo-comments.nvim) Moved plugin source from Github to Nix: - [Comment.nvim](https://github.com/numToStr/Comment.nvim) - [neo-tree.nvim](https://github.com/numToStr/Comment.nvim) Mapped windown switching to `<C-h`... instead of `<M-h`... Moved some coliding lsp keymaps under the `<leader>l` group - Eg. `<leader>ls` for signature help
17 lines
547 B
Lua
17 lines
547 B
Lua
if vim.g.did_load_aerial_plugin then
|
|
return
|
|
end
|
|
vim.g.did_load_aerial_plugin = true
|
|
|
|
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>")
|
|
|
|
|