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
|
||||
-- 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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue