easy install LSP

This commit is contained in:
Chris 2021-03-23 18:55:12 -04:00
parent 353a643170
commit 7367ca68b7
7 changed files with 14 additions and 26 deletions

View file

@ -8,6 +8,7 @@
-- require'illuminate'.on_attach(client)
-- end
require'lspconfig'.tsserver.setup {
cmd = {DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server", "--stdio"},
on_attach = require'lsp'.tsserver_on_attach,
-- This makes sure tsserver is not used for formatting (I prefer prettier)
-- on_attach = require'lsp'.common_on_attach,