1
0
Fork 0

Typescript

This commit is contained in:
Felipe Contreras 2022-07-26 17:17:54 -04:00
parent ee80c2413e
commit 788747a90d

View file

@ -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({
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = 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.
['<CR>'] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({