From 24bf025e9e46feba2f944aa7403fb5e8f68a326b Mon Sep 17 00:00:00 2001 From: Zakarya Date: Mon, 5 May 2025 17:16:10 -0700 Subject: [PATCH] Add rational behind disabling single quote autoclosing --- lazy-lock.json | 4 ++-- lua/plugins/autoclose.lua | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index 85dbbae..a392144 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,9 +1,9 @@ { - "ale": { "branch": "master", "commit": "1aaeb2cdae9f031a8621415c3fbb29dc722a29d5" }, + "ale": { "branch": "master", "commit": "2f4a8665916e8bf44a30bbdc8a820692edd9f652" }, "autoclose.nvim": { "branch": "main", "commit": "b2077aa2c83df7ebc19b2a20a3a0654b24ae9c8f" }, "blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" }, "conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" }, - "gruvbox.nvim": { "branch": "main", "commit": "91a0f8e460197a521d42a2e84a7a2a4010be4bbb" }, + "gruvbox.nvim": { "branch": "main", "commit": "dfc89cf5ce9a5ac149dd5d4b347fc1db3c1b2fa4" }, "hover.nvim": { "branch": "main", "commit": "1a8282fe3933c0c6f2769d7d6a9b7bab49984aee" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" }, diff --git a/lua/plugins/autoclose.lua b/lua/plugins/autoclose.lua index a01c5fd..fc7f3b5 100644 --- a/lua/plugins/autoclose.lua +++ b/lua/plugins/autoclose.lua @@ -4,6 +4,11 @@ return { config = function() require("autoclose").setup({ keys = { + --[[** + * Here I'm removing the single quote "tick" character from autoclose + * because I almost never use single quotes for string literals, but + * I often use them as apostrophes (which should not be autoclosed). + *]] ["'"] = { escape = false, close = false, pair = "''" }, }, })