Skip to content

Commit 901901a

Browse files
committed
fix: maintenance
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
1 parent c1ba9df commit 901901a

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

lua/boolean-toggle.lua

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,11 @@ function M.cursor_toggle_boolean()
223223
and end_col
224224
and conv
225225
and vim.list_contains({ 'acwrite', '' }, vim.api.nvim_get_option_value('buftype', { buf = bufnr }))
226-
)
226+
) or vim.list_contains(Config.config.ignore_ft, vim.api.nvim_get_option_value('filetype', { buf = bufnr }))
227227
then
228228
return
229229
end
230230

231-
if vim.list_contains(Config.config.ignore_ft, vim.api.nvim_get_option_value('filetype', { buf = bufnr })) then
232-
return
233-
end
234-
235231
local line = vim.api.nvim_get_current_line()
236232
local current_bool = line:sub(start_col, end_col)
237233
if not conv[current_bool] then
@@ -298,15 +294,11 @@ function M.cursor_set_to_true()
298294
and end_col
299295
and conv
300296
and vim.list_contains({ 'acwrite', '' }, vim.api.nvim_get_option_value('buftype', { buf = bufnr }))
301-
)
297+
) or vim.list_contains(Config.config.ignore_ft, vim.api.nvim_get_option_value('filetype', { buf = bufnr }))
302298
then
303299
return
304300
end
305301

306-
if vim.list_contains(Config.config.ignore_ft, vim.api.nvim_get_option_value('filetype', { buf = bufnr })) then
307-
return
308-
end
309-
310302
local line = vim.api.nvim_get_current_line()
311303
local current_bool = line:sub(start_col, end_col)
312304
if not conv[current_bool] then

0 commit comments

Comments
 (0)