mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 13:31:04 +00:00
Fix ts server
This commit is contained in:
parent
81a4fc79f2
commit
8d9c189b00
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ return {
|
||||||
-- LSP keymaps
|
-- LSP keymaps
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
local opts = { noremap = true, silent = true, buffer = bufnr }
|
local opts = { noremap = true, silent = true, buffer = bufnr }
|
||||||
|
|
||||||
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts)
|
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts)
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
|
||||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
||||||
|
|
@ -63,7 +63,7 @@ return {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- TypeScript/JavaScript LSP
|
-- TypeScript/JavaScript LSP
|
||||||
lspconfig.typescript.setup({
|
lspconfig.ts_ls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue