fix coc-flutter on linux
This commit is contained in:
1 parent
64071f3c59
commit
871664d491
2 files changed
+12
No files matched your search
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user