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:
Sanchayan Maity 2023-06-03 17:02:12 +05:30
parent 3fd01ac9e6
commit e758ef0a08
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
5 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1,2 @@
vim.b.minitrailspace_disable = true
vim.b.spell = false

View File

@ -1,5 +1,3 @@
setlocal nospell
nnoremap <buffer> <silent>q :bwipeout!<CR>
nnoremap <buffer> <Leader>gb :call git#git_branch_checkout()<CR>

View File

@ -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 })

View File

@ -0,0 +1,2 @@
vim.b.minitrailspace_disable = true
vim.b.spell = false

View File

@ -0,0 +1 @@
vim.b.minitrailspace_disable = true