1{ ... }:
2{
3 config.vim.options = {
4 # Indentation
5 tabstop = 2;
6 softtabstop = 2;
7 shiftwidth = 2;
8 showmode = false;
9
10 # Default to treesitter folding
11 foldenable = true;
12 foldmethod = "expr";
13 foldexpr = "v:lua.vim.treesitter.foldexpr()";
14 foldlevel = 99;
15 foldcolumn = "1";
16 foldlevelstart = 99;
17
18 # Case-insensitive find-in-file
19 ignorecase = true;
20 smartcase = true;
21
22 # Enable swapfile, but not in the same location as the source files.
23 undofile = true;
24 swapfile = true;
25 };
26}