From bd3bc6f6fc57edb50e110c4af74799c143958261 Mon Sep 17 00:00:00 2001 From: Foo-x Date: Sat, 19 Oct 2024 12:24:29 +0900 Subject: [PATCH] docs: fix typos --- README.md | 2 +- docs/docs/getting-started/configuration-options.md | 4 ++-- docs/docs/usage/authentication.md | 2 +- lua/kulala/config/init.lua | 2 +- lua/kulala/parser/env.lua | 2 +- lua/kulala/parser/init.lua | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 87dc288..17afce9 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ See [configuration options](https://kulala.mwco.app/docs/getting-started/configu For getting this project started. -This project was heaviliy inspired by the idea of having a REST client in Neovim. +This project was heavily inspired by the idea of having a REST client in Neovim. The actual state of [rest.nvim](https://github.com/rest-nvim/rest.nvim) as archived kicked off the development of kulala.nvim. diff --git a/docs/docs/getting-started/configuration-options.md b/docs/docs/getting-started/configuration-options.md index ef4ca7c..06447e4 100644 --- a/docs/docs/getting-started/configuration-options.md +++ b/docs/docs/getting-started/configuration-options.md @@ -87,7 +87,7 @@ the Kulala plugin with the available `opts`: winbar = false, -- Specify the panes to be displayed by default - -- Current avaliable pane contains { "body", "headers", "headers_body", "script_output", "stats" }, + -- Current available pane contains { "body", "headers", "headers_body", "script_output", "stats" }, default_winbar_panes = { "body", "headers", "headers_body" }, -- enable reading vscode rest client environment variables @@ -342,7 +342,7 @@ Possible values: - You can use an external program which receives the full body as stdin and has to return the selected value in stdout. The placeholder `{{path}}` can be used in any string of - this defintion and will be replaced by the actual path (after `body.`). + this definition and will be replaced by the actual path (after `body.`). - Alternative you can give a lua function of `value = function(body, path)`. Default: diff --git a/docs/docs/usage/authentication.md b/docs/docs/usage/authentication.md index d5e9a83..ed1214f 100644 --- a/docs/docs/usage/authentication.md +++ b/docs/docs/usage/authentication.md @@ -38,7 +38,7 @@ GET https://www/api HTTP/1.1 Authorization: Basic TXlVc2VyOlByaXZhdGU= ``` -Futhermore you can enter username and password in +Furthermore you can enter username and password in plain text in the `Authorization` header field, Kulala will automatically encode it for you. diff --git a/lua/kulala/config/init.lua b/lua/kulala/config/init.lua index 0bd547c..f8b8683 100644 --- a/lua/kulala/config/init.lua +++ b/lua/kulala/config/init.lua @@ -63,7 +63,7 @@ M.defaults = { -- enable winbar winbar = false, -- Specify the panes to be displayed by default - -- Current avaliable pane contains { "body", "headers", "headers_body", "script_output", "stats" }, + -- Current available pane contains { "body", "headers", "headers_body", "script_output", "stats" }, default_winbar_panes = { "body", "headers", "headers_body" }, -- enable reading vscode rest client environment variables vscode_rest_client_environmentvars = false, diff --git a/lua/kulala/parser/env.lua b/lua/kulala/parser/env.lua index bdd8eda..46addd6 100644 --- a/lua/kulala/parser/env.lua +++ b/lua/kulala/parser/env.lua @@ -57,7 +57,7 @@ M.get_env = function() if dotenv then local dotenv_env = vim.fn.readfile(dotenv) for _, line in ipairs(dotenv_env) do - -- if the line is not empy and not a comment, then + -- if the line is not empty and not a comment, then if not line:match("^%s*$") and not line:match("^%s*#") then local key, value = line:match("^%s*([^=]+)%s*=%s*(.*)%s*$") if key and value then diff --git a/lua/kulala/parser/init.lua b/lua/kulala/parser/init.lua index 5f16217..07cb3a2 100644 --- a/lua/kulala/parser/init.lua +++ b/lua/kulala/parser/init.lua @@ -676,7 +676,7 @@ M.parse = function(start_request_linenr) replace_variables_in_url_headers_body(res, document_variables, env, false) end - -- build the command to exectute the request + -- build the command to execute the request table.insert(res.cmd, CONFIG.get().curl_path) table.insert(res.cmd, "-s") table.insert(res.cmd, "-D")