Comments (4)
Hi @DanRoscigno, thank you for your reply! Unfortunately, it didn't have the exact functionality I wanted.
So I did create a fork to fix this and other issues I found. I managed to fix them, here's the link if you feel like checking it out: https://github.com/kikofmas/grammarous.nvim
The goal is to transition it to Lua as a way for me to learn both vim script and Lua.
from vim-grammarous.
Thanks @kikofmas , I may give it a try. Unfortunately my team uses VS Code, so I am trying to use that to be in sync with the rest of the team, so neovim does not get much use by me lately :(
from vim-grammarous.
I am encountering the same issue, did you manage to fix it?
from vim-grammarous.
Hi @kikofmas I didn't. I am now using this config:
-- configure ltex-ls
require 'ltex-ls'.setup {
on_attach = on_attach,
capabilities = capabilities,
use_spellfile = false,
filetypes = { "latex", "tex", "bib", "markdown", "gitcommit", "text" },
settings = {
ltex = {
enabled = { "latex", "tex", "bib", "markdown", },
language = "en",
diagnosticSeverity = "information",
sentenceCacheSize = 2000,
additionalRules = {
-- download ngrams from
-- https://dev.languagetool.org/finding-errors-using-n-gram-data.html
languageModel = '~/ngrams/',
enablePickyRules = true,
motherTongue = "en",
},
disabledRules = {
en = { "EN_QUOTES" }
},
dictionary = (function()
---- For dictionary, search for files in the runtime to have
---- and include them as externals the format for them is
---- dict/{LANG}.txt
----
---- Also add dict/default.txt to all of them
local files = {}
for _, file in ipairs(vim.api.nvim_get_runtime_file("dict/*", true)) do
local lang = vim.fn.fnamemodify(file, ":t:r")
local fullpath = vim.fs.normalize(file, ":p")
files[lang] = { ":" .. fullpath }
end
--
if files.default then
for lang, _ in pairs(files) do
if lang ~= "default" then
vim.list_extend(files[lang], files.default)
end
end
files.default = nil
end
return files
end)(),
},
},
}
from vim-grammarous.
Related Issues (20)
- Allow using LanguageTool via TCP port
- Getting "vim-grammarous: Grammar check failed:" error with no additional information. HOT 2
- [Error] exit code 122 HOT 1
- I see last commit was 2020, is this still maintained HOT 2
- How I can auto check my Markdown code HOT 1
- Breaking changes in LanguageTool HOT 9
- Enable the given level HOT 6
- How to setup on neovim? HOT 1
- Getting a --level message when running GrammarousCheck HOT 2
- Different background colors for vim spellang and grammarous HOT 1
- Weird highlighting with LaTeX HOT 3
- How to install this Plugin with vim plug HOT 3
- error when spelllang language include cjk
- Use languagetool-commandline.cmd installed in the system in windows HOT 2
- Buffer replaced with info window on GrammarCheck
- Bug in `upaired symbol`
- Won't recognize that LanguageTool is installed
- Could it be possible to use grammarous with ltex-ls ?
- Crash with multiple languages in `spelllang`.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-grammarous.