mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/nvim-autopairs: cleanup + fix mistyped option + tests (#280)
This commit is contained in:
parent
c300601dce
commit
961da92d2c
2 changed files with 40 additions and 31 deletions
35
tests/plugins/nvim-autopairs.nix
Normal file
35
tests/plugins/nvim-autopairs.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
# Empty configuration
|
||||
empty = {
|
||||
plugins.nvim-autopairs.enable = true;
|
||||
};
|
||||
|
||||
# All the upstream default options of trouble
|
||||
defaults = {
|
||||
plugins.nvim-autopairs = {
|
||||
enable = true;
|
||||
|
||||
pairs = null;
|
||||
disabledFiletypes = ["TelescopePrompt" "spectre_panel"];
|
||||
disableInMacro = false;
|
||||
disableInVisualblock = false;
|
||||
disableInReplaceMode = true;
|
||||
ignoredNextChar = "[=[[%w%%%'%[%\"%.%`%$]]=]";
|
||||
enableMoveright = true;
|
||||
enableAfterQuote = true;
|
||||
enableCheckBracketLine = true;
|
||||
enableBracketInQuote = true;
|
||||
enableAbbr = false;
|
||||
breakUndo = true;
|
||||
checkTs = false;
|
||||
tsConfig = {
|
||||
lua = ["string" "source"];
|
||||
javascript = ["string" "template_string"];
|
||||
};
|
||||
mapCr = true;
|
||||
mapBs = true;
|
||||
mapCH = false;
|
||||
mapCW = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue