diff options
author | Minijackson <minijackson@riseup.net> | 2023-01-18 13:39:42 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-01-18 13:39:42 +0100 |
commit | cfdb14cf768f2971f6efe2e333c620571f30fad1 (patch) | |
tree | 7cf802c821abd12bf47a336784d444791ced6f83 /dotfiles/vim/ftplugin/rust.lua | |
parent | 087b8756a6113c78ae20ee00c96c38f5922287a0 (diff) | |
download | nixos-config-reborn-cfdb14cf768f2971f6efe2e333c620571f30fad1.tar.gz nixos-config-reborn-cfdb14cf768f2971f6efe2e333c620571f30fad1.zip |
vim: refactor, allowing different files like ftplugin
Diffstat (limited to 'dotfiles/vim/ftplugin/rust.lua')
-rw-r--r-- | dotfiles/vim/ftplugin/rust.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dotfiles/vim/ftplugin/rust.lua b/dotfiles/vim/ftplugin/rust.lua new file mode 100644 index 0000000..23a46f1 --- /dev/null +++ b/dotfiles/vim/ftplugin/rust.lua | |||
@@ -0,0 +1,18 @@ | |||
1 | -- TODO: suffixes, includes | ||
2 | |||
3 | vim.bo.expandtab = true | ||
4 | vim.bo.shiftwidth = 4 | ||
5 | vim.bo.softtabstop = 4 | ||
6 | vim.bo.textwidth = 99 | ||
7 | |||
8 | vim.opt_local.comments = { | ||
9 | "s0:/*!", | ||
10 | "ex:*/", | ||
11 | "s1:/*", | ||
12 | "mb:*", | ||
13 | "ex:*/", | ||
14 | ":///", | ||
15 | "://!", | ||
16 | "://", | ||
17 | } | ||
18 | vim.bo.commentstring = "// %s" | ||