From 85a938e71abd2226d541bddb48f12e9bfa714219 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Fri, 25 Oct 2024 08:49:41 -0400 Subject: [PATCH] Adding filetype indent for JS cause 4 tabs were too much. --- after/ftplugin/javascript.lua | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 after/ftplugin/javascript.lua diff --git a/after/ftplugin/javascript.lua b/after/ftplugin/javascript.lua new file mode 100644 index 0000000..10c1efc --- /dev/null +++ b/after/ftplugin/javascript.lua @@ -0,0 +1,4 @@ +vim.bo.tabstop = 2 -- size of a hard tabstop (ts). +vim.bo.shiftwidth = 2 -- size of an indentation (sw). +vim.bo.expandtab = true -- always uses spaces instead of tab characters (et). +vim.bo.softtabstop = 2 -- number of spaces a counts for. When 0, feature is off (sts).