From 0c3a1751152eeef8412e93c264b5290797696d10 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Mon, 9 Nov 2026 09:29:53 +0100 Subject: [PATCH] scli save history --- nvim/.config/nvim/init.lua | 33 ++++++++++++++++++++++++++------- zsh/.zshrc | 1 + 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 48700a7..1833065 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -3,6 +3,8 @@ vim.cmd('let &packpath = &runtimepath') vim.cmd('let g:python3_host_prog="/usr/bin/python"') vim.cmd('source ~/.vimrc"') +require("tts").setup() + -- Enable LSPs vim.lsp.enable('bashls') @@ -10,6 +12,7 @@ vim.lsp.enable('clangd') vim.lsp.enable('cmake') vim.lsp.enable('jdtls') vim.lsp.enable('jedi_language_server') +vim.lsp.enable('ltex_plus') vim.lsp.enable('lua_ls') vim.lsp.enable('texlab') vim.lsp.enable('zls') @@ -41,10 +44,26 @@ vim.lsp.config("zls", { end }) --- vim.lsp.config("jdtls", { --- settings = { --- java = { --- --- } --- } --- }) +local languagetool_api_key = vim.fn.system( + { + "kwallet-query", + "--folder", "Passwords", + "--read-password", "languagetool", + "kdewallet" +}) +if vim.v.shell_error ~= 0 then +error("Could not read credential from KWallet: " .. entry) +end + +vim.lsp.config("ltex_plus",{ + settings = { + ltex = { + language = "fr-BE", + languageToolHttpServerUri = "https://api.languagetoolplus.com", + languageToolOrg = { + username = "d.tonitch@gmail.com", + apiKey = vim.trim(languagetool_api_key) + } + } + } +}) diff --git a/zsh/.zshrc b/zsh/.zshrc index 2210c96..07a56bb 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -74,6 +74,7 @@ alias :q=exit alias vim=nvim alias radio="mpv https://radio.freenode.net/radio.ogg --volume=30" alias calc="calcurse-caldav && calcurse && calcurse-caldav" +alias scli="scli --save-history" # Theming section autoload -U compinit colors zcalc