mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: move to nixvim
This commit is contained in:
parent
ca97476a47
commit
779c3c4098
22 changed files with 772 additions and 57 deletions
29
home/profiles/nixvim/plugins/aerial.nix
Normal file
29
home/profiles/nixvim/plugins/aerial.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
_: {
|
||||
plugins = let
|
||||
basePlugin = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
in {
|
||||
aerial =
|
||||
basePlugin
|
||||
// {
|
||||
settings = {
|
||||
backends = [
|
||||
"treesitter"
|
||||
"lsp"
|
||||
"markdown"
|
||||
"man"
|
||||
];
|
||||
attach_mode = "global";
|
||||
highlight_on_hover = true;
|
||||
on_attach.__raw = ''
|
||||
function(buffer)
|
||||
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
|
||||
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue