mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-14 08:32:39 +02:00
feat: neovim - more plugins
This commit is contained in:
@@ -46,10 +46,10 @@ Provided by nvim-treesitter.
|
|||||||
|
|
||||||
| Action | Shortcut |
|
| Action | Shortcut |
|
||||||
| ----------------- | -------- |
|
| ----------------- | -------- |
|
||||||
| init selection | `gnn` |
|
| init selection | `<Ctrl-space>` |
|
||||||
| node incremental | `grn` |
|
| node incremental | `<Ctrl-space>` |
|
||||||
| scope incremental | `grc` |
|
| scope incremental | `<Alt-Space>` |
|
||||||
| node decremental | `grm` |
|
| node decremental | `Backspace` |
|
||||||
|
|
||||||
## Text Manipulation
|
## Text Manipulation
|
||||||
|
|
||||||
|
|||||||
@@ -130,12 +130,26 @@ return {
|
|||||||
{"nvim-lua/plenary.nvim"},
|
{"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
|
-- Language Parser for syntax highlighting / indentation / folding / Incremental selection
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local utils = require "astronvim.utils";
|
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, {
|
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, {
|
||||||
-- neovim
|
-- neovim
|
||||||
"vim",
|
"vim",
|
||||||
|
|||||||
Reference in New Issue
Block a user