diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-10-06 18:01:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-10-06 18:01:40 +0900 |
| commit | a488c1360faaa213ebb196015818d5583c5182a9 (patch) | |
| tree | b42a3d38a54dbaeff1e6b4cacdf2b8f7d377d814 | |
| parent | 74f47088e57413e5dc28358e60fb6fde9bed60f0 (diff) | |
| download | dotfiles-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.lua | 2 | ||||
| -rw-r--r-- | .vimrc | 2 |
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 }, @@ -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 |
