-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautocmd.nix
57 lines (55 loc) · 1.04 KB
/
autocmd.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ pkgs, config, ... }:
{
autoCmd = [
# {
# event = "FileType";
# pattern = "nix";
# callback = {
# __raw = "function() vim.cmd('FormatOnSave') end";
# };
# }
{
event = "TermEnter";
pattern = "*";
command = "setlocal clipboard=unnamedplus";
}
{
event = "TermEnter";
pattern = "*";
command = "setl nonumber";
}
{
event = "FileType";
pattern = "javascript";
command = ''
setl noexpandtab
setl tabstop=4
setl shiftwidth=4
'';
# callback.__raw = ''
# function() vim.cmd([[
# setl noexpandtab
# setl ts=2
# setl sw=2
# ]] end
# '';
}
{
event = "BufEnter";
pattern = "*/zabbix/*";
command = ''
setl noexpandtab
setl tabstop=4
setl shiftwidth=4
setl colorcolumn=120
'';
}
{
event = "FileType";
pattern = "*";
command = ''
TSBufEnable highlight
'';
}
];
}