Public Access
more ltex stuff
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||||
"gruvbox": { "branch": "main", "commit": "089b60e92aa0a1c6fa76ff527837cd35b6f5ac81" },
|
"gruvbox": { "branch": "main", "commit": "089b60e92aa0a1c6fa76ff527837cd35b6f5ac81" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
|
"ltex_extra.nvim": { "branch": "master", "commit": "67dc3465af8d8caa49a00aaff066289a94eb753e" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "f4f791f67e70d378a754d02da068231d2352e5bc" },
|
"lualine.nvim": { "branch": "master", "commit": "f4f791f67e70d378a754d02da068231d2352e5bc" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
||||||
|
|||||||
@@ -46,38 +46,17 @@ return {
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
lspconfig.ltex.setup({
|
lspconfig.ltex.setup({
|
||||||
settings = {
|
on_attach = function()
|
||||||
ltex = {
|
require("ltex_extra").setup({
|
||||||
language = "de-DE", -- or "en-US", "en-GB", etc.
|
load_langs = { "de-DE" },
|
||||||
disabledRules = {
|
})
|
||||||
["de-DE"] = { "" }, -- or leave empty to enable all
|
end,
|
||||||
},
|
filetypes = { "markdown", "text", "latex" },
|
||||||
},
|
|
||||||
},
|
|
||||||
filetypes = { "markdown", "text", "latex" }, -- Add any other types you write in
|
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
|
||||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
|
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
|
||||||
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, {})
|
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, {})
|
||||||
vim.diagnostic.config({
|
|
||||||
virtual_text = {
|
|
||||||
spacing = 4,
|
|
||||||
format = function(diagnostic)
|
|
||||||
local msg = diagnostic.message
|
|
||||||
local max_len = 40
|
|
||||||
if #msg > max_len then
|
|
||||||
return msg:sub(1, max_len) .. "…"
|
|
||||||
end
|
|
||||||
return msg
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
float = {
|
|
||||||
border = "rounded",
|
|
||||||
max_width = 80,
|
|
||||||
focusable = false,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
"barreiroleo/ltex_extra.nvim",
|
||||||
|
ft = { "markdown", "tex" },
|
||||||
|
dependencies = { "neovim/nvim-lspconfig" },
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user