Add coc basic config, not fully working yet
This commit is contained in:
12
nvim-coc/lua/plugins/utility/grammar.lua
Executable file
12
nvim-coc/lua/plugins/utility/grammar.lua
Executable file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"kikofmas/grammarous.nvim",
|
||||
config = function ()
|
||||
local keymap = vim.keymap
|
||||
local opts = require('utils').opts
|
||||
|
||||
keymap.set('n', '<leader>sl', ':GrammarousCheck<CR>', opts('LanguageTool Spell Checker'))
|
||||
keymap.set('n', '<leader>sc', ':GrammarousCheck --comments-only<CR>', opts('LanguageTool Spell Checker, only comments'))
|
||||
keymap.set('n', '<leader>ss', ':set spell<CR>', opts('Start built-in spell checker'))
|
||||
keymap.set('n', '<leader>sn', ':set nospell<CR>', opts('Stop spell checker'))
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user