From 2f8c25b4a812e0fb88e41f022ae4a85d0bad625a Mon Sep 17 00:00:00 2001 From: kalmenn Date: Thu, 23 Jan 2025 14:56:07 +0100 Subject: [PATCH] feat(languages): Add typescript support --- lazy-lock.json | 1 + lua/plugins/languages/typescript.lua | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 lua/plugins/languages/typescript.lua diff --git a/lazy-lock.json b/lazy-lock.json index 1304050..6c6e361 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -30,6 +30,7 @@ "ripgrep": { "branch": "master", "commit": "79cbe89deb1151e703f4d91b19af9cdcc128b765" }, "rustaceanvim": { "branch": "master", "commit": "25aab238aad3e58f864274449456bdc339981750" }, "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, + "typescript-tools.nvim": { "branch": "master", "commit": "35e397ce467bedbbbb5bfcd0aa79727b59a08d4a" }, "undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" }, "vim-fugitive": { "branch": "master", "commit": "fcb4db52e7f65b95705aa58f0f2df1312c1f2df2" } } diff --git a/lua/plugins/languages/typescript.lua b/lua/plugins/languages/typescript.lua new file mode 100644 index 0000000..b243683 --- /dev/null +++ b/lua/plugins/languages/typescript.lua @@ -0,0 +1,10 @@ +return { + "pmizio/typescript-tools.nvim", + dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" }, + cond = function(_) + return vim.fn.executable("tsserver") ~= 0 + end, + config = function(opts) + require("typescript-tools").setup(opts) + end, +}