diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-10 17:16:17 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-10 17:17:50 +0200 |
commit | becb46897a4c9fac8126b66266e8cc25c840cfdc (patch) | |
tree | b28da80096cbe01566b1d57503ffb0a7ef7c1a89 | |
parent | 1b042cb1a77bd9c9e35b33e9132987d3099dab04 (diff) |
nvim: Add cooklang
-rw-r--r-- | nvim/nvim/ftplugin/cook.vim | 10 | ||||
-rw-r--r-- | nvim/nvim/init.lua | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/nvim/nvim/ftplugin/cook.vim b/nvim/nvim/ftplugin/cook.vim new file mode 100644 index 0000000..6d70be6 --- /dev/null +++ b/nvim/nvim/ftplugin/cook.vim @@ -0,0 +1,10 @@ +" Spellcheck in cooklang (automatic to english) +setlocal spelllang=en +setlocal spell +setlocal formatoptions+=t + +" Auto-capitalize script +augroup SENTENCES + au! + autocmd InsertCharPre * if &ft=='markdown' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif +augroup END diff --git a/nvim/nvim/init.lua b/nvim/nvim/init.lua index de2627b..0365d1e 100644 --- a/nvim/nvim/init.lua +++ b/nvim/nvim/init.lua @@ -8,6 +8,7 @@ vim.fn["plug#begin"]() Plug("julienvincent/nvim-paredit") -- Some paredit commands Plug("ekaitz-zarraga/nvim-paredit-scheme") -- Scheme extension Plug("windwp/nvim-autopairs") -- Autobalance parens + Plug('luizribeiro/vim-cooklang') Plug("dracula/vim") Plug("othree/html5.vim") Plug("zaid/vim-rec") |