style: Fix formatting

This commit is contained in:
Rosen Stoyanov 2022-09-07 16:14:27 +03:00
parent 41d1a0e793
commit 3f11043be4
No known key found for this signature in database
GPG Key ID: 1805A1B84632D0EE

View File

@ -80,12 +80,12 @@ function M.toggle_quick_menu()
local curr_file = utils.normalize_path(vim.api.nvim_buf_get_name(0)) local curr_file = utils.normalize_path(vim.api.nvim_buf_get_name(0))
vim.cmd( vim.cmd(
string.format( string.format(
"autocmd Filetype harpoon " .. "autocmd Filetype harpoon "
"let path = '%s' | call clearmatches() | " .. .. "let path = '%s' | call clearmatches() | "
-- move the cursor to the line containing the current filename -- move the cursor to the line containing the current filename
"call search('\\V'.path.'\\$') | " .. .. "call search('\\V'.path.'\\$') | "
-- add a hl group to that line -- add a hl group to that line
"call matchadd('HarpoonCurrentFile', '\\V'.path.'\\$')", .. "call matchadd('HarpoonCurrentFile', '\\V'.path.'\\$')",
curr_file:gsub("\\", "\\\\") curr_file:gsub("\\", "\\\\")
) )
) )