From 8fbf7c2a9ce92b97941bff2c8b52c1d52d9834d2 Mon Sep 17 00:00:00 2001 From: cryxtalix Date: Sat, 9 May 2026 00:15:07 +0800 Subject: Update --- .config/nvim_old/ftplugin/lua.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .config/nvim_old/ftplugin/lua.lua (limited to '.config/nvim_old/ftplugin/lua.lua') diff --git a/.config/nvim_old/ftplugin/lua.lua b/.config/nvim_old/ftplugin/lua.lua new file mode 100644 index 0000000..275b1a9 --- /dev/null +++ b/.config/nvim_old/ftplugin/lua.lua @@ -0,0 +1,14 @@ +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) + +-- Check http://vimcasts.org/episodes/tabs-and-spaces/ for more info on tabs and spaces -- cgit