diff options
| author | Cryxtalix <fgx8p9t@protonmail.com> | 2025-11-01 03:50:30 +0800 |
|---|---|---|
| committer | Cryxtalix <fgx8p9t@protonmail.com> | 2025-11-01 03:50:30 +0800 |
| commit | 459493ab874dc7117b0a5da27fc190a47fa95aac (patch) | |
| tree | 07d5629d44715375ac974b57481f74366f805df9 /.config/nvim/ftplugin/xml.lua | |
| parent | ec3591f0e79cea3a6ebaaadedfec1e9e8ac78312 (diff) | |
update
Diffstat (limited to '.config/nvim/ftplugin/xml.lua')
| -rw-r--r-- | .config/nvim/ftplugin/xml.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/ftplugin/xml.lua b/.config/nvim/ftplugin/xml.lua new file mode 100644 index 0000000..4d8e3f2 --- /dev/null +++ b/.config/nvim/ftplugin/xml.lua @@ -0,0 +1,12 @@ +local indent_size = 2 +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) |
