From f2a5938f03ad701e930025343bc61284d1e2647b Mon Sep 17 00:00:00 2001 From: Rafael Derolez Date: Tue, 23 May 2023 15:54:30 +0200 Subject: [PATCH 1/2] feat(pack): add typescript.nvim code actions --- lua/astrocommunity/pack/typescript-deno/typescript.lua | 6 ++++++ lua/astrocommunity/pack/typescript/typescript.lua | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lua/astrocommunity/pack/typescript-deno/typescript.lua b/lua/astrocommunity/pack/typescript-deno/typescript.lua index 14020b585..e26c8e2c1 100644 --- a/lua/astrocommunity/pack/typescript-deno/typescript.lua +++ b/lua/astrocommunity/pack/typescript-deno/typescript.lua @@ -24,4 +24,10 @@ return { ft = { "javascript", "typescript", "javascriptreact", "typescriptreact" }, opts = function() return { server = require("astronvim.utils.lsp").config "denols" } end, }, + { + "jose-elias-alvarez/null-ls.nvim", + opts = function(_, opts) + opts.sources = utils.list_insert_unique(opts.sources, require "typescript.extensions.null-ls.code-actions") + end, + }, } diff --git a/lua/astrocommunity/pack/typescript/typescript.lua b/lua/astrocommunity/pack/typescript/typescript.lua index 4d7e6bc1d..bb9116111 100644 --- a/lua/astrocommunity/pack/typescript/typescript.lua +++ b/lua/astrocommunity/pack/typescript/typescript.lua @@ -81,6 +81,12 @@ return { }, opts = function() return { server = require("astronvim.utils.lsp").config "tsserver" } end, }, + { + "jose-elias-alvarez/null-ls.nvim", + opts = function(_, opts) + opts.sources = utils.list_insert_unique(opts.sources, require "typescript.extensions.null-ls.code-actions") + end, + }, { "nvim-neo-tree/neo-tree.nvim", opts = function(_, opts) From 24124dbc4eb4401847732ca4ebd3bbfb0ae604f4 Mon Sep 17 00:00:00 2001 From: Oli <57495944+owittek@users.noreply.github.com> Date: Tue, 23 May 2023 17:54:53 +0200 Subject: [PATCH 2/2] fix(pack): remove null-ls tsserver-extension for denols Co-authored-by: Micah Halter --- lua/astrocommunity/pack/typescript-deno/typescript.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lua/astrocommunity/pack/typescript-deno/typescript.lua b/lua/astrocommunity/pack/typescript-deno/typescript.lua index e26c8e2c1..14020b585 100644 --- a/lua/astrocommunity/pack/typescript-deno/typescript.lua +++ b/lua/astrocommunity/pack/typescript-deno/typescript.lua @@ -24,10 +24,4 @@ return { ft = { "javascript", "typescript", "javascriptreact", "typescriptreact" }, opts = function() return { server = require("astronvim.utils.lsp").config "denols" } end, }, - { - "jose-elias-alvarez/null-ls.nvim", - opts = function(_, opts) - opts.sources = utils.list_insert_unique(opts.sources, require "typescript.extensions.null-ls.code-actions") - end, - }, }