pls be good
This commit is contained in:
parent
9388a41ff1
commit
2a811dbcfd
2 changed files with 759 additions and 755 deletions
|
@ -36,7 +36,6 @@ LTEX_SETTINGS = {
|
|||
on_attach = function(client, bufnr)
|
||||
DEFAULT_ON_ATTACH(client, bufnr)
|
||||
end,
|
||||
use_spellfile = true,
|
||||
autostart = false,
|
||||
filetypes = ltex_fts,
|
||||
settings = {
|
||||
|
@ -56,7 +55,7 @@ LTEX_SETTINGS = {
|
|||
-- "Verzeichnis" (German). Meinten Sie vielleicht 'cunning', 'trick'?'
|
||||
-- everytime I use the word "list". I liked that this makes the hints be
|
||||
-- in german regardless of the language I'm working in through...
|
||||
--motherTongue = "de",
|
||||
motherTongue = 'de',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -87,9 +86,14 @@ return {
|
|||
dependencies = { 'neovim/nvim-lspconfig' },
|
||||
config = function()
|
||||
require('ltex_extra').setup {
|
||||
server_opts = LTEX_SETTINGS,
|
||||
load_langs = { 'en-US', 'de-DE' },
|
||||
init_check = true,
|
||||
server_opts = LTEX_SETTINGS, -- or use lspconfig regularly
|
||||
}
|
||||
map('<leader>tS', function()
|
||||
vim.opt.spell = true -- manually enable spell with `set spell` or `<leader>ts`
|
||||
vim.opt.spelllang = 'en,de_de'
|
||||
vim.opt.spellsuggest = 'double,50,timeout:5000'
|
||||
vim.cmd 'LspStart ltex'
|
||||
end, 'Enable spell checking with languagetool')
|
||||
end,
|
||||
|
|
|
@ -544,7 +544,8 @@ return {
|
|||
local label = {}
|
||||
|
||||
for severity, icon in pairs(icons) do
|
||||
local n = #vim.diagnostic.get(props.buf, { severity = vim.diagnostic.severity[string.upper(severity)] })
|
||||
local n = #vim.diagnostic.get(props.buf,
|
||||
{ severity = vim.diagnostic.severity[string.upper(severity)] })
|
||||
if n > 0 then
|
||||
table.insert(label, { icon .. ' ' .. n .. ' ', group = 'DiagnosticSign' .. severity })
|
||||
end
|
||||
|
@ -643,7 +644,6 @@ return {
|
|||
vim.b.minitrailspace_disable = true
|
||||
vim.opt_local.list = false
|
||||
vim.opt_local.colorcolumn = '0'
|
||||
vim.opt_local.spell = false
|
||||
end,
|
||||
})
|
||||
end,
|
||||
|
|
Loading…
Add table
Reference in a new issue