diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2023-10-16 15:50:52 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2023-10-16 15:50:52 +0400 |
| commit | b2b1f661e55c2a1139aef1f8f8aa4a11b10d3b01 (patch) | |
| tree | 200094a27a17f2a74f31128786726514181108e1 /lua/filetype-config.lua | |
Initial commit
Diffstat (limited to 'lua/filetype-config.lua')
| -rw-r--r-- | lua/filetype-config.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/filetype-config.lua b/lua/filetype-config.lua new file mode 100644 index 0000000..132913b --- /dev/null +++ b/lua/filetype-config.lua @@ -0,0 +1,8 @@ +vim.api.nvim_create_autocmd("FileType", { + pattern = {"tex", "json", "haskell", "markdown", "lua"}, + callback = function () + vim.opt_local.tabstop = 2 + vim.opt_local.softtabstop = 2 + vim.opt_local.shiftwidth = 2 + end +}) |