From b3226e116c5ca9723e221efcc79c3673f89fb090 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 19 Jun 2023 12:47:03 -0400 Subject: [PATCH] fix(dart): fix dart pack --- lua/astrocommunity/pack/dart/dart.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lua/astrocommunity/pack/dart/dart.lua b/lua/astrocommunity/pack/dart/dart.lua index 15c2032d7..93bc472c5 100644 --- a/lua/astrocommunity/pack/dart/dart.lua +++ b/lua/astrocommunity/pack/dart/dart.lua @@ -11,14 +11,14 @@ return { }, { "akinsho/flutter-tools.nvim", - ft = { "dart" }, + ft = "dart", init = function() astronvim.lsp.skip_setup = utils.list_insert_unique(astronvim.lsp.skip_setup, "dartls") end, - opts = { - lsp = require("astronvim.utils.lsp").config "dartls", - debugger = { - enabled = true, - }, - }, + opts = function() + return { + lsp = require("astronvim.utils.lsp").config "dartls", + debugger = { enabled = true }, + } + end, dependencies = { { "nvim-lua/plenary.nvim" }, { @@ -28,5 +28,9 @@ return { }, }, -- Add "flutter" extension to "telescope" - { "nvim-telescope/telescope.nvim", opts = function() require("telescope").load_extension "flutter" end }, + { + "nvim-telescope/telescope.nvim", + optional = true, + opts = function() require("telescope").load_extension "flutter" end, + }, }