From 821666fdc534dfcba32fcc0b016d751b3d55db82 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 8 Nov 2021 15:36:12 +0100 Subject: docs: wrap table arg with parantheses to avoid ambiguous syntax --- README.md | 4 ++-- doc/nvim-lsp-installer.txt | 6 +++--- 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 -- cgit v1.2.3-70-g09d2