From a3682d5a9a6d801af52b86917892cc64c19984e7 Mon Sep 17 00:00:00 2001 From: Emanuel Oberholzer Date: Fri, 18 Oct 2024 13:19:14 +0200 Subject: [PATCH] Added option to disable ftplugin --- ftplugin/dart/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ftplugin/dart/init.lua b/ftplugin/dart/init.lua index 9abc55d..c4c529f 100644 --- a/ftplugin/dart/init.lua +++ b/ftplugin/dart/init.lua @@ -1,3 +1,9 @@ +-- See section 'DISABLING' in :h ftplugin +if vim.b.flutter_tools_did_ftplugin then + return +end +vim.b.flutter_tools_did_ftplugin = 1 + require("flutter-tools.lsp").attach() vim.opt_local.comments = [[sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://]]