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)
|
on_attach = function(client, bufnr)
|
||||||
DEFAULT_ON_ATTACH(client, bufnr)
|
DEFAULT_ON_ATTACH(client, bufnr)
|
||||||
end,
|
end,
|
||||||
use_spellfile = true,
|
|
||||||
autostart = false,
|
autostart = false,
|
||||||
filetypes = ltex_fts,
|
filetypes = ltex_fts,
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -56,7 +55,7 @@ LTEX_SETTINGS = {
|
||||||
-- "Verzeichnis" (German). Meinten Sie vielleicht 'cunning', 'trick'?'
|
-- "Verzeichnis" (German). Meinten Sie vielleicht 'cunning', 'trick'?'
|
||||||
-- everytime I use the word "list". I liked that this makes the hints be
|
-- 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...
|
-- in german regardless of the language I'm working in through...
|
||||||
--motherTongue = "de",
|
motherTongue = 'de',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -87,9 +86,14 @@ return {
|
||||||
dependencies = { 'neovim/nvim-lspconfig' },
|
dependencies = { 'neovim/nvim-lspconfig' },
|
||||||
config = function()
|
config = function()
|
||||||
require('ltex_extra').setup {
|
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()
|
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'
|
vim.cmd 'LspStart ltex'
|
||||||
end, 'Enable spell checking with languagetool')
|
end, 'Enable spell checking with languagetool')
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -544,7 +544,8 @@ return {
|
||||||
local label = {}
|
local label = {}
|
||||||
|
|
||||||
for severity, icon in pairs(icons) do
|
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
|
if n > 0 then
|
||||||
table.insert(label, { icon .. ' ' .. n .. ' ', group = 'DiagnosticSign' .. severity })
|
table.insert(label, { icon .. ' ' .. n .. ' ', group = 'DiagnosticSign' .. severity })
|
||||||
end
|
end
|
||||||
|
@ -643,7 +644,6 @@ return {
|
||||||
vim.b.minitrailspace_disable = true
|
vim.b.minitrailspace_disable = true
|
||||||
vim.opt_local.list = false
|
vim.opt_local.list = false
|
||||||
vim.opt_local.colorcolumn = '0'
|
vim.opt_local.colorcolumn = '0'
|
||||||
vim.opt_local.spell = false
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue