mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 14:18:36 +02:00
Add files via upload
This commit is contained in:
parent
b98a370a30
commit
af21c78d94
4 changed files with 36 additions and 26 deletions
|
@ -11,3 +11,13 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
|||
vim.highlight.on_yank()
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_user_command('FormatDisable', function()
|
||||
vim.g.disable_autoformat = true
|
||||
end, {
|
||||
desc = 'Disable autoformat-on-save',
|
||||
})
|
||||
vim.api.nvim_create_user_command('FormatEnable', function()
|
||||
vim.g.disable_autoformat = false
|
||||
end, {
|
||||
desc = 'Re-enable autoformat-on-save',
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue