mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-03 10:25:52 +00:00
autopairs/nvim-autopairs: lazy-load instead of always loading (#1370)
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
This is suggested per the plugin's readme
This commit is contained in:
parent
2b7dd7ecb1
commit
866b983c40
2 changed files with 8 additions and 8 deletions
|
|
@ -147,6 +147,9 @@
|
||||||
- Added [hlargs.nvim](https://github.com/m-demare/hlargs.nvim) support as
|
- Added [hlargs.nvim](https://github.com/m-demare/hlargs.nvim) support as
|
||||||
`visuals.hlargs-nvim`.
|
`visuals.hlargs-nvim`.
|
||||||
|
|
||||||
|
- Lazy-load `nvim-autopairs` plugin when using
|
||||||
|
`vim.autopairs.nvim-autopairs.enable`
|
||||||
|
|
||||||
[Machshev](https://github.com/machshev):
|
[Machshev](https://github.com/machshev):
|
||||||
|
|
||||||
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
|
- Added `ruff` and `ty` LSP support for Python under `programs.python`.
|
||||||
|
|
|
||||||
|
|
@ -4,17 +4,14 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
|
||||||
|
|
||||||
cfg = config.vim.autopairs.nvim-autopairs;
|
cfg = config.vim.autopairs.nvim-autopairs;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim.lazy.plugins.nvim-autopairs = {
|
||||||
startPlugins = ["nvim-autopairs"];
|
package = "nvim-autopairs";
|
||||||
pluginRC.autopairs = entryAnywhere ''
|
setupModule = "nvim-autopairs";
|
||||||
require('nvim-autopairs').setup(${toLuaObject cfg.setupOpts})
|
setupOpts = cfg.setupOpts;
|
||||||
'';
|
event = ["InsertEnter"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue