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()`
|
-- See `:help vim.highlight.on_yank()`
|
||||||
|
|
||||||
-- Choose your own highlight color: value in hexidecimals
|
-- 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
|
-- Define how long the highlight should appear: value is in milliseconds
|
||||||
local highlight_timeout = 300
|
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 }),
|
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
|
||||||
callback = function()
|
callback = function()
|
||||||
-- Set highlight color and timeout
|
-- Set highlight color and timeout
|
||||||
vim.cmd(string.format("highlight YankHighlight guibg=%s ctermbg=0", highlight_color))
|
vim.cmd(string.format('highlight YankHighlight guibg=%s ctermbg=0', highlight_color))
|
||||||
vim.highlight.on_yank({ higroup = "YankHighlight", timeout = highlight_timeout })
|
vim.highlight.on_yank { higroup = 'YankHighlight', timeout = highlight_timeout }
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue