You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,10 @@
1
1
# bigfile.nvim
2
2
3
-
This plugin disables certain features if the opened file is big.
3
+
This plugin automatically disables certain features if the opened file is big.
4
4
File size and features to disable are configurable.
5
5
6
-
Automatic features/integrations include: `LSP`, `treesitter`, `indent_blankline`, `illuminate.vim``NoMatchParen`, `syntax off`, ... (full list at the end)
6
+
Features/integrations include: `LSP`, `treesitter`, `indent_blankline`, `illuminate.vim``NoMatchParen`, `syntax off`, ... (full list at the end)
7
7
8
-
Integrations that may need manual configuration: `treesitter`.
9
8
You can also add your own features.
10
9
11
10
# Setup
@@ -21,8 +20,11 @@ use {
21
20
22
21
The plugin ships with common default options. No further setup is required.
23
22
23
+
## Customization
24
+
24
25
```lua
25
-
localdefault_config= {
26
+
-- default config
27
+
require("bigfile").config {
26
28
filesize=2, -- size of the file in MiB, the plugin round file sizes to the closest MiB
27
29
pattern= { "*" }, -- autocmd pattern
28
30
features= { -- features to disable
@@ -38,18 +40,16 @@ local default_config = {
38
40
}
39
41
```
40
42
41
-
Full description of features is at the end of this file.
42
-
43
-
## Customization
43
+
Full description of the default features is at the end of this file.
44
44
45
45
You can override the default configuration, or add your own custom features
46
46
47
47
```lua
48
-
-- all fields except `name` and `disable` can be nil
48
+
-- all fields except `name` and `disable` are optional
49
49
localmymatchparen= {
50
50
name="mymatchparen", -- name
51
51
opts= {
52
-
defer=false, -- true if `disable` should be called on `BufReadPost` and not `BufReadPre`
52
+
defer=false, --set to true if `disable` should be called on `BufReadPost` and not `BufReadPre`
53
53
},
54
54
disable=function() -- called to disable the feature
0 commit comments