From d282a3b0b6c161607f107310d5ce986bf2600462 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 12 Aug 2023 22:03:02 +0800 Subject: [PATCH] feat: neovim - more plugins --- home/base/desktop/neovim/README.md | 8 ++++---- home/base/desktop/neovim/astronvim_user/init.lua | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/home/base/desktop/neovim/README.md b/home/base/desktop/neovim/README.md index 645bb754..bd782982 100644 --- a/home/base/desktop/neovim/README.md +++ b/home/base/desktop/neovim/README.md @@ -46,10 +46,10 @@ Provided by nvim-treesitter. | Action | Shortcut | | ----------------- | -------- | -| init selection | `gnn` | -| node incremental | `grn` | -| scope incremental | `grc` | -| node decremental | `grm` | +| init selection | `` | +| node incremental | `` | +| scope incremental | `` | +| node decremental | `Backspace` | ## Text Manipulation diff --git a/home/base/desktop/neovim/astronvim_user/init.lua b/home/base/desktop/neovim/astronvim_user/init.lua index 7dc0acef..1f163b7b 100644 --- a/home/base/desktop/neovim/astronvim_user/init.lua +++ b/home/base/desktop/neovim/astronvim_user/init.lua @@ -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 = "", -- Ctrl + Space + node_incremental = "", + scope_incremental = "", -- Alt + Space + node_decremental = "", -- Backspace + }, + } opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { -- neovim "vim",