feat: neovim - more plugins

This commit is contained in:
Ryan Yin
2023-08-12 22:03:02 +08:00
parent 62487cc5ca
commit d282a3b0b6
2 changed files with 19 additions and 5 deletions

View File

@@ -46,10 +46,10 @@ Provided by nvim-treesitter.
| Action | Shortcut |
| ----------------- | -------- |
| init selection | `gnn` |
| node incremental | `grn` |
| scope incremental | `grc` |
| node decremental | `grm` |
| init selection | `<Ctrl-space>` |
| node incremental | `<Ctrl-space>` |
| scope incremental | `<Alt-Space>` |
| node decremental | `Backspace` |
## Text Manipulation

View File

@@ -130,12 +130,26 @@ return {
{"nvim-lua/plenary.nvim"},
}
},
-- full signature help, docs and completion for the nvim lua API.
{ "folke/neodev.nvim", opts = {} },
{ "RRethy/vim-illuminate", config = function() end },
-- Language Parser for syntax highlighting / indentation / folding / Incremental selection
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
local utils = require "astronvim.utils";
opts.indent.enable = false;
opts.incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>", -- Ctrl + Space
node_incremental = "<C-space>",
scope_incremental = "<A-space>", -- Alt + Space
node_decremental = "<bs>", -- Backspace
},
}
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, {
-- neovim
"vim",