nvim: after/ftplugin: Disable mini trailspace
Now we enable trailspace module from mini, disable it for file types where we do not want trailing space to be highlighted.
This commit is contained in:
parent
3fd01ac9e6
commit
e758ef0a08
5 changed files with 8 additions and 4 deletions
2
nvim/.config/nvim/after/ftplugin/git.lua
Normal file
2
nvim/.config/nvim/after/ftplugin/git.lua
Normal file
|
@ -0,0 +1,2 @@
|
|||
vim.b.minitrailspace_disable = true
|
||||
vim.b.spell = false
|
|
@ -1,5 +1,3 @@
|
|||
setlocal nospell
|
||||
|
||||
nnoremap <buffer> <silent>q :bwipeout!<CR>
|
||||
|
||||
nnoremap <buffer> <Leader>gb :call git#git_branch_checkout()<CR>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
vim.bo.textwidth = 72
|
||||
vim.bo.bufhidden = 'wipe'
|
||||
vim.b.textwidth = 72
|
||||
vim.b.bufhidden = 'wipe'
|
||||
vim.b.minitrailspace_disable = true
|
||||
|
||||
vim.keymap.set('n', '[c', "?^@@<CR>", { noremap=true, silent=true, buffer=0 })
|
||||
vim.keymap.set('n', ']c', "/^@@<CR>", { noremap=true, silent=true, buffer=0 })
|
||||
|
|
2
nvim/.config/nvim/after/ftplugin/gitsendemail.lua
Normal file
2
nvim/.config/nvim/after/ftplugin/gitsendemail.lua
Normal file
|
@ -0,0 +1,2 @@
|
|||
vim.b.minitrailspace_disable = true
|
||||
vim.b.spell = false
|
1
nvim/.config/nvim/after/ftplugin/mail.lua
Normal file
1
nvim/.config/nvim/after/ftplugin/mail.lua
Normal file
|
@ -0,0 +1 @@
|
|||
vim.b.minitrailspace_disable = true
|
Loading…
Reference in a new issue