add tsserver to nvim lsp

pull/2/head
Alpha Chen 2 years ago
parent ec57c34ea4
commit 859dc55df1

@ -122,9 +122,10 @@
(vim.keymap.set :n :gr vim.lsp.buf.references bufopts)
(vim.keymap.set :n :<leader>f vim.lsp.buf.formatting bufopts)))
(let [{: rust_analyzer} (require :lspconfig)]
(let [{: rust_analyzer : tsserver} (require :lspconfig)]
((. rust_analyzer :setup) {: on_attach
:settings {:rust-analyzer {:checkOnSave {:command :clippy}}}}))
:settings {:rust-analyzer {:checkOnSave {:command :clippy}}}})
((. tsserver :setup) {: on_attach}))
;;; netrw

Loading…
Cancel
Save