aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-02-14 17:42:24 +0900
committernsfisis <nsfisis@gmail.com>2021-02-14 17:42:24 +0900
commitd0542c7a033c45d1760c17557bf5a582263af5f6 (patch)
treed615a7723ef00b803bc3ed83161b30d19911b870
parentf63836b943905a978e4593c01095d390d81ec0de (diff)
downloaddotfiles-d0542c7a033c45d1760c17557bf5a582263af5f6.tar.gz
dotfiles-d0542c7a033c45d1760c17557bf5a582263af5f6.tar.zst
dotfiles-d0542c7a033c45d1760c17557bf5a582263af5f6.zip
Update .vim: Add TypeScript settings
-rw-r--r--.vim/my/after/ftplugin/typescript.vim16
-rw-r--r--.vimrc1
2 files changed, 17 insertions, 0 deletions
diff --git a/.vim/my/after/ftplugin/typescript.vim b/.vim/my/after/ftplugin/typescript.vim
new file mode 100644
index 0000000..cdb1674
--- /dev/null
+++ b/.vim/my/after/ftplugin/typescript.vim
@@ -0,0 +1,16 @@
+scriptencoding utf-8
+
+
+if exists('b:did_ftplugin_typescript_after')
+ finish
+endif
+
+
+
+FtpluginSetLocal expandtab
+FtpluginSetLocal shiftwidth=2
+FtpluginSetLocal softtabstop=2
+
+
+
+let b:did_ftplugin_typescript_after = 1
diff --git a/.vimrc b/.vimrc
index 5cc29d5..fa36dcd 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1228,6 +1228,7 @@ xmap m/b <Plug>(caw:box:comment)
let g:clang_format#auto_format = 1
Autocmd FileType javascript ClangFormatAutoDisable
+Autocmd FileType typescript ClangFormatAutoDisable