summaryrefslogtreecommitdiff
path: root/lua/filetypes.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2023-12-28 17:06:53 +0800
committerIan Griffin <migriffin@disroot.org>2023-12-28 17:06:53 +0800
commit93e008c73586b239b2e11ad897c4bda081c023d7 (patch)
tree5b04a52270f15b2d469b84350fa97fa6ee31c0a5 /lua/filetypes.lua
parent0f73cb3fed54b16791cca87271e436b23f62c817 (diff)
updates
Diffstat (limited to 'lua/filetypes.lua')
-rw-r--r--lua/filetypes.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/lua/filetypes.lua b/lua/filetypes.lua
index 183c5b5..78a2c70 100644
--- a/lua/filetypes.lua
+++ b/lua/filetypes.lua
@@ -21,7 +21,14 @@ ct.augroup('templates',
--
ct.augroup('filetypeSettings',
{'FileType', 'python', 'setlocal', 'tabstop=4 shiftwidth=4 expandtab'},
- {'FileType', 'html', 'setlocal', 'tabstop=2 shiftwidth=2 expandtab'},
- {'FileType', 'javascript', 'setlocal', 'tabstop=2 shiftwidth=2 expandtab'},
- {'FileType', 'vue', 'setlocal', 'tabstop=2 shiftwidth=2 expandtab'}
+ {'FileType', 'html', 'setlocal', 'tabstop=2 shiftwidth=2'},
+ {'FileType', 'javascript', 'setlocal', 'tabstop=2 shiftwidth=2'},
+ {'FileType', 'typescript', 'setlocal', 'tabstop=2 shiftwidth=2'},
+ {'FileType', 'typescriptreact','setlocal', 'tabstop=2 shiftwidth=2'},
+ {'FileType', 'vue', 'setlocal', 'tabstop=2 shiftwidth=2'}
)
+
+--
+-- Misc.
+--
+vim.cmd 'autocmd BufWritePost *.go,*.py,*.js,*.ts,*tsx,*.tex LspFormat' -- run lspformat when saving in go