summaryrefslogtreecommitdiffstats
path: root/dotfiles/vim/ftplugin/rust.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/vim/ftplugin/rust.lua')
-rw-r--r--dotfiles/vim/ftplugin/rust.lua18
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
3vim.bo.expandtab = true
4vim.bo.shiftwidth = 4
5vim.bo.softtabstop = 4
6vim.bo.textwidth = 99
7
8vim.opt_local.comments = {
9 "s0:/*!",
10 "ex:*/",
11 "s1:/*",
12 "mb:*",
13 "ex:*/",
14 ":///",
15 "://!",
16 "://",
17}
18vim.bo.commentstring = "// %s"