fix neorg and add treesitter
This commit is contained in:
parent
c24150153f
commit
1e6312d181
3 changed files with 26 additions and 6 deletions
|
|
@ -21,6 +21,7 @@
|
|||
./plugins/which-key.nix
|
||||
./plugins/telescope.nix
|
||||
./plugins/neorg.nix
|
||||
./plugins/treesitter.nix
|
||||
|
||||
./plugins/lsp/lsp.nix
|
||||
|
||||
|
|
|
|||
|
|
@ -34,12 +34,15 @@
|
|||
};
|
||||
"core.keybinds" = {
|
||||
config = {
|
||||
hook = function(keybinds)
|
||||
# -- unmap Alt-Enter to "core.itero.next-iteration", "<CR>"
|
||||
keybinds.unmap("norg", "i", "<M-CR>")
|
||||
# -- map Shift-Enter to "core.itero.next-iteration", "<CR>"
|
||||
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
|
||||
end;
|
||||
hook = {
|
||||
__raw = ''function(keybinds)
|
||||
-- unmap Alt-Enter to "core.itero.next-iteration", "<CR>"
|
||||
keybinds.unmap("norg", "i", "<M-CR>")
|
||||
-- map Shift-Enter to "core.itero.next-iteration", "<CR>"
|
||||
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
|
||||
end;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
16
config/plugins/treesitter.nix
Normal file
16
config/plugins/treesitter.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
incrementalSelection = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
initSelection = "g<space><space>";
|
||||
nodeIncremental = "g<space><space>";
|
||||
scopeIncremental = "<c-s>";
|
||||
nodeDecremental = "g<space>m";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue