From a488c1360faaa213ebb196015818d5583c5182a9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 6 Oct 2023 18:01:40 +0900 Subject: vim,nvim: configure indentation settings for Scala --- .config/nvim/lua/vimrc/init.lua | 2 ++ .vimrc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.config/nvim/lua/vimrc/init.lua b/.config/nvim/lua/vimrc/init.lua index 6b039b5..be5eba9 100644 --- a/.config/nvim/lua/vimrc/init.lua +++ b/.config/nvim/lua/vimrc/init.lua @@ -71,6 +71,8 @@ function M.register_filetype_autocmds_for_indentation() python = { style = SPACE, width = 4 }, ruby = { style = SPACE, width = 2 }, satysfi = { style = SPACE, width = 2 }, + sbt = { style = SPACE, width = 2 }, + scala = { style = SPACE, width = 2 }, toml = { style = SPACE, width = 2 }, typescript = { style = SPACE, width = 2 }, typescriptreact = { style = SPACE, width = 2 }, diff --git a/.vimrc b/.vimrc index 8c6728e..197e608 100644 --- a/.vimrc +++ b/.vimrc @@ -179,6 +179,8 @@ autocmd Vimrc FileType php set expandtab tabstop=2 shiftwidth=2 so autocmd Vimrc FileType python set expandtab tabstop=4 shiftwidth=4 softtabstop=4 autocmd Vimrc FileType ruby set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autocmd Vimrc FileType satysfi set expandtab tabstop=2 shiftwidth=2 softtabstop=2 +autocmd Vimrc FileType sbt set expandtab tabstop=2 shiftwidth=2 softtabstop=2 +autocmd Vimrc FileType scala set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autocmd Vimrc FileType toml set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autocmd Vimrc FileType typescript set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autocmd Vimrc FileType typescriptreact set expandtab tabstop=2 shiftwidth=2 softtabstop=2 -- cgit v1.2.3-70-g09d2