From f71fd6928563500915add8dab7bba95da1ee3289 Mon Sep 17 00:00:00 2001 From: Arsham Shirvani Date: Wed, 15 Jun 2022 00:06:26 +0100 Subject: [PATCH] fix(config): fix copying config deeply --- README.md | 4 ++-- lua/indent-tools/health.lua | 2 +- lua/indent-tools/init.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d6024be..354fdce 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ Text object (`dii`, `yii`, `vii`, etc.): ## Requirements -At the moment it works on the development release of Neovim, and will be -officially supporting [Neovim 0.7.0](https://github.com/neovim/neovim/releases/tag/v0.7.0). +This library supports [Neovim +0.7.0](https://github.com/neovim/neovim/releases/tag/v0.7.0) or newer. This plugin depends are the following libraries. Please make sure to add them as dependencies in your package manager: diff --git a/lua/indent-tools/health.lua b/lua/indent-tools/health.lua index 9fe542b..16d6fa4 100644 --- a/lua/indent-tools/health.lua +++ b/lua/indent-tools/health.lua @@ -1,5 +1,5 @@ local M = {} -local health = require("health") +local health = vim.health or require("health") M.check = function() health.report_start("Indent Tool Health Check") diff --git a/lua/indent-tools/init.lua b/lua/indent-tools/init.lua index 51afece..bd46014 100644 --- a/lua/indent-tools/init.lua +++ b/lua/indent-tools/init.lua @@ -143,7 +143,7 @@ local defaults = { --{{{ return { config = function(opts) --{{{ - opts = vim.tbl_extend("force", defaults, opts) + opts = vim.tbl_deep_extend("force", defaults, opts) vim.validate({ opts = { opts, "table" }, normal = { opts.normal, { "table", "nil", "boolean" } },