|
@@ -28,3 +28,12 @@ vim.api.nvim_create_autocmd('FileType', {
|
|
|
vim.bo.textwidth = 80
|
|
|
end,
|
|
|
})
|
|
|
+
|
|
|
+vim.api.nvim_create_autocmd('FileType', {
|
|
|
+ pattern = 'typescript',
|
|
|
+ callback = function()
|
|
|
+ -- disable default indentation as it's pretty broken for jsdoc
|
|
|
+ vim.opt_local.indentexpr = nil
|
|
|
+ vim.opt_local.formatexpr = nil
|
|
|
+ end,
|
|
|
+})
|