aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-11-08 15:36:12 +0100
committerWilliam Boman <william@redwill.se>2021-11-08 15:36:23 +0100
commit821666fdc534dfcba32fcc0b016d751b3d55db82 (patch)
tree08f4db91ecce13aac27998299742b361c16eb46c
parentfix: solang needs to specify a target now, can be: ewasm, solana, substrate |... (diff)
downloadmason-821666fdc534dfcba32fcc0b016d751b3d55db82.tar
mason-821666fdc534dfcba32fcc0b016d751b3d55db82.tar.gz
mason-821666fdc534dfcba32fcc0b016d751b3d55db82.tar.bz2
mason-821666fdc534dfcba32fcc0b016d751b3d55db82.tar.lz
mason-821666fdc534dfcba32fcc0b016d751b3d55db82.tar.xz
mason-821666fdc534dfcba32fcc0b016d751b3d55db82.tar.zst
mason-821666fdc534dfcba32fcc0b016d751b3d55db82.zip
docs: wrap table arg with parantheses to avoid ambiguous syntax
-rw-r--r--README.md4
-rw-r--r--doc/nvim-lsp-installer.txt6
2 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3d3bea12..a8b840db 100644
--- a/README.md
+++ b/README.md
@@ -119,7 +119,7 @@ Example:
local lsp_installer = require("nvim-lsp-installer")
-- Provide settings first!
-lsp_installer.settings {
+lsp_installer.settings({
ui = {
icons = {
server_installed = "✓",
@@ -127,7 +127,7 @@ lsp_installer.settings {
server_uninstalled = "✗"
}
}
-}
+})
lsp_installer.on_server_ready(function (server) server:setup {} end)
```
diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt
index 3cb7bf08..34fffb09 100644
--- a/doc/nvim-lsp-installer.txt
+++ b/doc/nvim-lsp-installer.txt
@@ -166,7 +166,7 @@ Example: >
local lsp_installer = require("nvim-lsp-installer")
-- Provide settings first!
- lsp_installer.settings {
+ lsp_installer.settings({
ui = {
icons = {
server_installed = "✓",
@@ -174,7 +174,7 @@ Example: >
server_uninstalled = "✗"
}
}
- }
+ })
lsp_installer.on_server_ready(function (server)
server:setup {}
@@ -233,7 +233,7 @@ DEBUGGING *nvim-lsp-installer-debugging*
To help with debugging issues with installing/uninstall servers, please make
sure to set nvim-lsp-installer's log level to DEBUG or TRACE, like so: >
- :lua require("nvim-lsp-installer").settings { log_level = vim.log.levels.DEBUG }
+ :lua require("nvim-lsp-installer").settings({ log_level = vim.log.levels.DEBUG })
<
You may find the logs by entering the command `:LspInstallLog`. Providing the