From b8b22f5cbc9d0a82a0bd0eb020147f4e9a273a05 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Fri, 28 Jul 2023 10:59:39 +0300 Subject: [PATCH] neovim: use oneline comments only --- neovim/.config/nvim/lua/daniil/plugins/comment.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neovim/.config/nvim/lua/daniil/plugins/comment.lua b/neovim/.config/nvim/lua/daniil/plugins/comment.lua index ffd274f..edc4899 100644 --- a/neovim/.config/nvim/lua/daniil/plugins/comment.lua +++ b/neovim/.config/nvim/lua/daniil/plugins/comment.lua @@ -5,7 +5,8 @@ require("Comment").setup({ local U = require("Comment.utils") -- Detemine whether to use linewise or blockwise commentstring - local type = ctx.ctype == U.ctype.line and "__default" or "__multiline" + -- local type = ctx.ctype == U.ctype.line and "__default" or "__multiline" + local type = "__default" -- Determine the location where to calculate commentstring from local location = nil