diff options
| author | cryxtalix <fgx8p9t@protonmail.com> | 2026-05-08 03:43:16 +0800 |
|---|---|---|
| committer | cryxtalix <fgx8p9t@protonmail.com> | 2026-05-08 03:43:16 +0800 |
| commit | 1302056eddd9a69ea2d0ffdf8bedd8582fb5a907 (patch) | |
| tree | 6842a96b396ada7003ec7ff7f3262a516be150b9 /.config/nvim/ftplugin/htmldjango.lua | |
| parent | 3a6553f64773aab5c81ee70ae0e1d57b5e448f64 (diff) | |
Update
Diffstat (limited to '.config/nvim/ftplugin/htmldjango.lua')
| -rw-r--r-- | .config/nvim/ftplugin/htmldjango.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/ftplugin/htmldjango.lua b/.config/nvim/ftplugin/htmldjango.lua new file mode 100644 index 0000000..3fbcec4 --- /dev/null +++ b/.config/nvim/ftplugin/htmldjango.lua @@ -0,0 +1,12 @@ +local indent_size = 4 +local use_tabs = false + +local settings = string.format("setlocal softtabstop=%s tabstop=%s shiftwidth=%s", indent_size, indent_size, indent_size) + +if use_tabs == true then + settings = settings .. " noexpandtab" +else + settings = settings .. " expandtab" +end + +vim.cmd(settings) |
