connorgmeean
3 years ago
2 changed files with 5 additions and 32 deletions
@ -1,30 +1,3 @@ |
|||
local javascript = {} |
|||
|
|||
javascript.settings = {} |
|||
|
|||
javascript.autocmds = { |
|||
{ |
|||
"FileType", |
|||
"javascript,javascriptreact", |
|||
function() |
|||
local langs_utils = require('doom.modules.langs.utils') |
|||
langs_utils.use_lsp('tsserver') |
|||
|
|||
require("nvim-treesitter.install").ensure_installed("javascript,javascriptreact") |
|||
|
|||
-- 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, |
|||
null_ls.builtins.diagnostics.eslint_d, |
|||
}) |
|||
end |
|||
end, |
|||
once = true, |
|||
}, |
|||
} |
|||
|
|||
return javascript |
|||
-- Because javascript and typescript use the same tooling, |
|||
-- this module is just an alias for the typescript module. |
|||
return require('doom.modules.langs.typescript') |
|||
|
Loading…
Reference in new issue