mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-16 07:28:00 +02:00
plugins/faster: init
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
0c50ed9349
commit
d438e42dfc
2 changed files with 156 additions and 0 deletions
43
plugins/by-name/faster/default.nix
Normal file
43
plugins/by-name/faster/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "faster";
|
||||||
|
packPathName = "faster.nvim";
|
||||||
|
package = "faster-nvim";
|
||||||
|
description = "Selectively disable some features when a big file is opened or macro is executed.";
|
||||||
|
maintainers = [ lib.maintainers.saygo-png ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
behaviours = {
|
||||||
|
bigfile = {
|
||||||
|
on = true;
|
||||||
|
features_disabled = [
|
||||||
|
"lsp"
|
||||||
|
"treesitter"
|
||||||
|
];
|
||||||
|
filesize = 2;
|
||||||
|
pattern = "*";
|
||||||
|
extra_patterns = [
|
||||||
|
{
|
||||||
|
filesize = 1.1;
|
||||||
|
pattern = "*.md";
|
||||||
|
}
|
||||||
|
{ pattern = "*.log"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fastmacro = {
|
||||||
|
on = true;
|
||||||
|
features_disabled = [ "lualine" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
features = {
|
||||||
|
lsp = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
treesitter = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
113
tests/test-sources/plugins/by-name/faster/default.nix
Normal file
113
tests/test-sources/plugins/by-name/faster/default.nix
Normal file
|
@ -0,0 +1,113 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.faster.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.faster = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
behaviours = {
|
||||||
|
bigfile = {
|
||||||
|
on = true;
|
||||||
|
features_disabled = [
|
||||||
|
"illuminate"
|
||||||
|
"matchparen"
|
||||||
|
"lsp"
|
||||||
|
"treesitter"
|
||||||
|
"indent_blankline"
|
||||||
|
"vimopts"
|
||||||
|
"syntax"
|
||||||
|
"filetype"
|
||||||
|
];
|
||||||
|
filesize = 2;
|
||||||
|
pattern = "*";
|
||||||
|
extra_patterns = [ ];
|
||||||
|
};
|
||||||
|
fastmacro = {
|
||||||
|
on = true;
|
||||||
|
features_disabled = [ "lualine" ];
|
||||||
|
};
|
||||||
|
features = {
|
||||||
|
filetype = {
|
||||||
|
on = true;
|
||||||
|
defer = true;
|
||||||
|
};
|
||||||
|
illuminate = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
indent_blankline = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
lsp = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
lualine = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
matchparen = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
syntax = {
|
||||||
|
on = true;
|
||||||
|
defer = true;
|
||||||
|
};
|
||||||
|
treesitter = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
vimopts = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.faster = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
behaviours = {
|
||||||
|
bigfile = {
|
||||||
|
on = true;
|
||||||
|
features_disabled = [
|
||||||
|
"lsp"
|
||||||
|
"treesitter"
|
||||||
|
];
|
||||||
|
filesize = 2;
|
||||||
|
pattern = "*";
|
||||||
|
extra_patterns = [
|
||||||
|
{
|
||||||
|
filesize = 1.1;
|
||||||
|
pattern = "*.md";
|
||||||
|
}
|
||||||
|
{ pattern = "*.log"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fastmacro = {
|
||||||
|
on = true;
|
||||||
|
features_disabled = [ "lualine" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
features = {
|
||||||
|
lsp = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
treesitter = {
|
||||||
|
on = true;
|
||||||
|
defer = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue