add(nvim): added diffview

This commit is contained in:
Léana 江 2023-03-14 14:59:22 +01:00
parent c98b3662a2
commit c3c764f31b
6 changed files with 216 additions and 3 deletions

View file

@ -34,10 +34,10 @@ local on_attach = function(client, bufnr)
end
-- Gutter symbols setup
vim.fn.sign_define("DiagnosticSignError", { text = '' , texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" })
vim.fn.sign_define("DiagnosticSignError", { text = '', texthl = "DiagnosticSignError", numhl = "DiagnosticSignError" })
vim.fn.sign_define("DiagnosticSignWarn", { text = '', texthl = "DiagnosticSignWarn", numhl = "DiagnosticSignWarn" })
vim.fn.sign_define("DiagnosticSignHint", { text = '·', texthl = "DiagnosticSignHint", numhl = "DiagnosticSignHint" })
vim.fn.sign_define("DiagnosticSignInfo", { text = '·' , texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" })
vim.fn.sign_define("DiagnosticSignInfo", { text = '·', texthl = "DiagnosticSignInfo", numhl = "DiagnosticSignInfo" })
-- Border setup
@ -74,6 +74,11 @@ require "lspconfig".lua_ls.setup {
}
},
}
local common_dictionary = {
"Yu", "Hui", "Chiang",
"ISTIC",
}
require "lspconfig".ltex.setup {
on_attach = on_attach,
cmd = { "ltex-ls" },
@ -85,6 +90,10 @@ require "lspconfig".ltex.setup {
motherTongue = "en-US"
},
trace = { server = "verbose" },
dictionary = {
["en-US"] = common_dictionary,
["fr"] = common_dictionary
},
},
},
flags = { debounce_text_changes = 5000 },