diff options
Diffstat (limited to '.config/nvim/ftplugin/dart.lua')
-rw-r--r-- | .config/nvim/ftplugin/dart.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/ftplugin/dart.lua b/.config/nvim/ftplugin/dart.lua index 419d040..3076d7d 100644 --- a/.config/nvim/ftplugin/dart.lua +++ b/.config/nvim/ftplugin/dart.lua @@ -1,6 +1,10 @@ +if require("cfg.utils").check_lsp_client_active "dartls" then + return +end + require("lspconfig").dartls.setup { cmd = { "dart", O.lang.dart.sdk_path, "--lsp" }, - on_attach = require("lsp").common_on_attach, + on_attach = require("cfg.lsp").common_on_attach, init_options = { closingLabels = false, flutterOutline = false, |