From b89190819380960464820a34be040a1eb27d8b85 Mon Sep 17 00:00:00 2001 From: Scott Gardner Date: Sun, 29 Sep 2024 22:49:30 +1000 Subject: [PATCH 1/3] docs(README): Updates the readme with information on the lsp.cmd option --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b8a4bc6..d5839c2 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,7 @@ require("flutter-tools").setup { virtual_text = true, -- show the highlight using virtual text virtual_text_str = "■", -- the virtual text character to highlight }, + cmd = {"command", "to", "run", "lsp"}, -- The command to run the dart lsp binary (e.g. { "/custom/path/dart", "language-server", "--protocol=lsp" }) on_attach = my_custom_on_attach, capabilities = my_custom_capabilities, -- e.g. lsp_status capabilities --- OR you can specify a function to deactivate or change or control how the config is created From b5b729ab2062063f035d1dd752aa1816dea2294c Mon Sep 17 00:00:00 2001 From: Scott Gardner Date: Sun, 29 Sep 2024 22:58:52 +1000 Subject: [PATCH 2/3] docs(vimdoc): Updates the vimdoc with the README Change --- doc/flutter-tools.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/flutter-tools.txt b/doc/flutter-tools.txt index 3737dd0..8e396a7 100644 --- a/doc/flutter-tools.txt +++ b/doc/flutter-tools.txt @@ -224,7 +224,7 @@ These two keys are two ways of solving the same problem so will conflict if both are set. >lua - + -- alternatively you can override the default configs require("flutter-tools").setup { ui = { @@ -308,6 +308,7 @@ both are set. virtual_text = true, -- show the highlight using virtual text virtual_text_str = "■", -- the virtual text character to highlight }, + cmd = {"command", "to", "run", "lsp"}, -- The command to run the dart lsp binary (e.g. { "/custom/path/dart", "language-server", "--protocol=lsp" }) on_attach = my_custom_on_attach, capabilities = my_custom_capabilities, -- e.g. lsp_status capabilities --- OR you can specify a function to deactivate or change or control how the config is created From 790761a51ee7e3befc736c574018a395208f7d5f Mon Sep 17 00:00:00 2001 From: Scott Gardner Date: Sun, 29 Sep 2024 23:07:49 +1000 Subject: [PATCH 3/3] docs(README): Minor wording in lsp.cmd documentation I just didn't like the sound of "custom/path/dart" vs "custom/dart/path" --- README.md | 2 +- doc/flutter-tools.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5839c2..3ed1421 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ require("flutter-tools").setup { virtual_text = true, -- show the highlight using virtual text virtual_text_str = "■", -- the virtual text character to highlight }, - cmd = {"command", "to", "run", "lsp"}, -- The command to run the dart lsp binary (e.g. { "/custom/path/dart", "language-server", "--protocol=lsp" }) + cmd = {"command", "to", "run", "lsp"}, -- The command to run the dart lsp (e.g. { "/custom/dart/path", "language-server", "--protocol=lsp" }) on_attach = my_custom_on_attach, capabilities = my_custom_capabilities, -- e.g. lsp_status capabilities --- OR you can specify a function to deactivate or change or control how the config is created diff --git a/doc/flutter-tools.txt b/doc/flutter-tools.txt index 8e396a7..9317ad6 100644 --- a/doc/flutter-tools.txt +++ b/doc/flutter-tools.txt @@ -308,7 +308,7 @@ both are set. virtual_text = true, -- show the highlight using virtual text virtual_text_str = "■", -- the virtual text character to highlight }, - cmd = {"command", "to", "run", "lsp"}, -- The command to run the dart lsp binary (e.g. { "/custom/path/dart", "language-server", "--protocol=lsp" }) + cmd = {"command", "to", "run", "lsp"}, -- The command to run the dart lsp binary (e.g. { "/custom/dart/path", "language-server", "--protocol=lsp" }) on_attach = my_custom_on_attach, capabilities = my_custom_capabilities, -- e.g. lsp_status capabilities --- OR you can specify a function to deactivate or change or control how the config is created