From b2b1f661e55c2a1139aef1f8f8aa4a11b10d3b01 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Mon, 16 Oct 2023 15:50:52 +0400 Subject: Initial commit --- lua/filetype-config.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/filetype-config.lua (limited to 'lua/filetype-config.lua') 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 +}) -- cgit v1.2.3