diff --git a/init.lua b/init.lua index 6b69c75..968d007 100644 --- a/init.lua +++ b/init.lua @@ -123,7 +123,7 @@ end -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches -local servers = { 'gopls', 'rust_analyzer', 'pylsp' } +local servers = { 'gopls', 'rust_analyzer', 'tsserver', 'pylsp' } for _, server in ipairs(servers) do lsp[server].setup { on_attach = on_attach, @@ -148,6 +148,7 @@ g.ale_linters = { javascript = {'eslint'}, python = {'flake8'}, tex = {'texlab'}, + typescript = {}, vim = {'vint'}, zsh = {'shell', 'shellcheck'}, } @@ -179,7 +180,7 @@ cmp.setup({ [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.abort(), - -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. [''] = cmp.mapping.confirm({ select = true }), }), sources = cmp.config.sources({