From 32727866bde68dd99302cc273135c33b76d0ee6a Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 7 May 2023 10:36:01 -0400 Subject: [PATCH] nvim: add typescript support --- programs | 4 +++- src/.config/nvim/lua/init.lua | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/programs b/programs index f5b5df2..75cda25 100644 --- a/programs +++ b/programs @@ -19,7 +19,7 @@ gimp blender audacity pulsemixer -ffmppeg +ffmpeg mpv netcat nmap @@ -31,6 +31,8 @@ scrot pynvim python-lsp-server python-lsp-black +typescript +typescript-language-server bear xsel xwallpaper diff --git a/src/.config/nvim/lua/init.lua b/src/.config/nvim/lua/init.lua index 9f5a533..610ad40 100644 --- a/src/.config/nvim/lua/init.lua +++ b/src/.config/nvim/lua/init.lua @@ -1,6 +1,6 @@ -- Syntax highlighting require'nvim-treesitter.configs'.setup { - ensure_installed = { "c", "cpp", "javascript", "python", "vim", "latex", "fish", "bash" }, + ensure_installed = { "c", "cpp", "javascript", "typescript", "python", "vim", "fish", "bash" }, sync_install = false, auto_install = false, highlight = { @@ -65,6 +65,7 @@ local servers = { } }, clangd = {}, + tsserver = {}, } local nvim_lsp = require('lspconfig')