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, + }, }