aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-10-06 18:01:40 +0900
committernsfisis <nsfisis@gmail.com>2023-10-06 18:01:40 +0900
commita488c1360faaa213ebb196015818d5583c5182a9 (patch)
treeb42a3d38a54dbaeff1e6b4cacdf2b8f7d377d814
parent74f47088e57413e5dc28358e60fb6fde9bed60f0 (diff)
downloaddotfiles-a488c1360faaa213ebb196015818d5583c5182a9.tar.gz
dotfiles-a488c1360faaa213ebb196015818d5583c5182a9.tar.zst
dotfiles-a488c1360faaa213ebb196015818d5583c5182a9.zip
vim,nvim: configure indentation settings for Scala
-rw-r--r--.config/nvim/lua/vimrc/init.lua2
-rw-r--r--.vimrc2
2 files changed, 4 insertions, 0 deletions
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