summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-31 16:26:00 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-31 16:26:24 +0200
commit141777bcccd3a5d01e2628e2d6e36384d86ec04a (patch)
tree035b54a02e45e90b8e8b2ed9deed9eba6a084b84 /.config/nvim
parentee96fea75a4ad724885e0f0258f1935a33b16fa0 (diff)
nvim: Fix formatting
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index e0d399d..4e59b45 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -101,7 +101,8 @@ vim.keymap.set('n', 'N', 'Nzzzv')
vim.api.nvim_create_autocmd('BufEnter', {
desc = 'Disable auto-commenting',
- group = vim.api.nvim_create_augroup('mango-no-autocomment', { clear = true }),
+ group = vim.api.nvim_create_augroup('mango-no-autocomment',
+ { clear = true }),
callback = function()
vim.opt.formatoptions:remove({ 'c', 'r', 'o' })
end,
@@ -109,7 +110,8 @@ vim.api.nvim_create_autocmd('BufEnter', {
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Momentarily highlight yanked text',
- group = vim.api.nvim_create_augroup('mango-highlight-yank', { clear = true }),
+ group = vim.api.nvim_create_augroup('mango-highlight-yank',
+ { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
@@ -117,7 +119,8 @@ vim.api.nvim_create_autocmd('TextYankPost', {
vim.api.nvim_create_autocmd('VimEnter', {
desc = 'Remove the Vim background color',
- group = vim.api.nvim_create_augroup('mango-transparent-bg', { clear = true }),
+ group = vim.api.nvim_create_augroup('mango-highlight-config',
+ { clear = true }),
callback = function()
vim.cmd [[
highlight CursorColumn guibg=#1D2635