fix coc-flutter on linux

This commit is contained in:
sgraves committed 2026-08-23 10:21:03 -05:00
1 parent 64071f3c59
commit 871664d491
2 files changed
+12

No files matched your search

+5
View File
@@ -40,6 +40,11 @@ NV_DARCULA_ENABLE_INLAY_HINTS =
utils.parse_env("NV_DARCULA_ENABLE_INLAY_HINTS", false) utils.parse_env("NV_DARCULA_ENABLE_INLAY_HINTS", false)
NV_DARCULA_ENABLE_VIRTUAL_TEXT = NV_DARCULA_ENABLE_VIRTUAL_TEXT =
utils.parse_env("NV_DARCULA_ENABLE_VIRTUAL_TEXT", false) utils.parse_env("NV_DARCULA_ENABLE_VIRTUAL_TEXT", false)
NV_DARCULA_FLUTTER_SDK_LOCATION =
utils.parse_env(
"NV_DARCULA_FLUTTER_SDK_LOCATION",
"~/snap/flutter/common/flutter"
)
NV_DARCULA_MASON_ROOT = NV_DARCULA_MASON_ROOT =
utils.parse_env( utils.parse_env(
"NV_DARCULA_MASON_ROOT", "NV_DARCULA_MASON_ROOT",
+7
View File
@@ -142,6 +142,13 @@ coc_config("suggest.noselect", true)
coc_config("suggest.virtualText", NV_DARCULA_ENABLE_VIRTUAL_TEXT) coc_config("suggest.virtualText", NV_DARCULA_ENABLE_VIRTUAL_TEXT)
coc_config("sumneko-lua.enableNvimLuaDev", true) coc_config("sumneko-lua.enableNvimLuaDev", true)
if not utils_os.is_windows then
local flutter_sdk = vim.fs.normalize(NV_DARCULA_FLUTTER_SDK_LOCATION)
if vim.fn.isdirectory(flutter_sdk) == 1 then
coc_config("flutter.sdk.path", flutter_sdk)
end
end
coc_config( coc_config(
"languageserver", "languageserver",
{ {