Fixed stylua formatting
This commit is contained in:
parent
d9b310b661
commit
50b37a91cf
1 changed files with 7 additions and 7 deletions
6
init.lua
6
init.lua
|
@ -197,7 +197,7 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
|
|||
-- See `:help vim.highlight.on_yank()`
|
||||
|
||||
-- Choose your own highlight color: value in hexidecimals
|
||||
local highlight_color = "#40005b"
|
||||
local highlight_color = '#40005b'
|
||||
|
||||
-- Define how long the highlight should appear: value is in milliseconds
|
||||
local highlight_timeout = 300
|
||||
|
@ -208,8 +208,8 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
|||
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
|
||||
callback = function()
|
||||
-- Set highlight color and timeout
|
||||
vim.cmd(string.format("highlight YankHighlight guibg=%s ctermbg=0", highlight_color))
|
||||
vim.highlight.on_yank({ higroup = "YankHighlight", timeout = highlight_timeout })
|
||||
vim.cmd(string.format('highlight YankHighlight guibg=%s ctermbg=0', highlight_color))
|
||||
vim.highlight.on_yank { higroup = 'YankHighlight', timeout = highlight_timeout }
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue