Typescript
This commit is contained in:
parent
ee80c2413e
commit
788747a90d
1 changed files with 3 additions and 2 deletions
5
init.lua
5
init.lua
|
|
@ -123,7 +123,7 @@ end
|
||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- 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
|
for _, server in ipairs(servers) do
|
||||||
lsp[server].setup {
|
lsp[server].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|
@ -148,6 +148,7 @@ g.ale_linters = {
|
||||||
javascript = {'eslint'},
|
javascript = {'eslint'},
|
||||||
python = {'flake8'},
|
python = {'flake8'},
|
||||||
tex = {'texlab'},
|
tex = {'texlab'},
|
||||||
|
typescript = {},
|
||||||
vim = {'vint'},
|
vim = {'vint'},
|
||||||
zsh = {'shell', 'shellcheck'},
|
zsh = {'shell', 'shellcheck'},
|
||||||
}
|
}
|
||||||
|
|
@ -179,7 +180,7 @@ cmp.setup({
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
['<C-e>'] = cmp.mapping.abort(),
|
['<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 }),
|
['<CR>'] = cmp.mapping.confirm({ select = true }),
|
||||||
}),
|
}),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue