Browse Source

fix(typescript): Add `tsx` file support

my-config
connorgmeean 3 years ago
parent
commit
ba21f46258
  1. 8
      lua/doom/modules/langs/typescript/init.lua

8
lua/doom/modules/langs/typescript/init.lua

@ -6,20 +6,20 @@ typescript.settings = {
typescript.autocommands = {
{
"FileType",
"typescript",
"typescript,typescriptreact",
function()
local langs_utils = require('doom.modules.langs.utils')
langs_utils.use_lsp('tsserver')
vim.defer_fn(function()
local ts_install = require("nvim-treesitter.install")
ts_install.ensure_installed("typescript")
end, 0)
-- Setup null-ls
if doom.modules.linter then
local null_ls = require("null-ls")
langs_utils.use_null_ls_source({
null_ls.builtins.formatting.eslint_d,
null_ls.builtins.code_actions.eslint_d,

Loading…
Cancel
Save