From 859dc55df14523a3de72c8888ae9e5a997398075 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 8 Jul 2022 12:38:59 -0700 Subject: [PATCH] add tsserver to nvim lsp --- nvim/fnl/init.fnl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/fnl/init.fnl b/nvim/fnl/init.fnl index 6a782d0..c564b50 100644 --- a/nvim/fnl/init.fnl +++ b/nvim/fnl/init.fnl @@ -122,9 +122,10 @@ (vim.keymap.set :n :gr vim.lsp.buf.references bufopts) (vim.keymap.set :n :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