nvim-config

Log | Files | Refs | Submodules | README

commit e4c855fe36fc6630c2bcc3789b5b4cbe192d49f5
parent ce421ce35d40be48c973816bfbdac68591c295fc
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date:   Tue, 14 Jun 2022 15:54:51 +0200

feat(lsp/texlab): add shortcuts for some commands

Diffstat:
Mlua/lsp_config.lua | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/lua/lsp_config.lua b/lua/lsp_config.lua @@ -218,6 +218,19 @@ local lsps = { texlab = { capabilities = capabilities, on_attach = texlab_attach, + on_init = function(client) + client.cleanAuxiliary = function(uri) + uri = uri or vim.uri_from_bufnr(vim.api.nvim_get_current_buf()) + client.request("workspace/executeCommand", + { command = "texlab.cleanAuxiliary", arguments = { document = { uri = uri } } }) + end + + client.cleanArtifacts = function(uri) + uri = uri or vim.uri_from_bufnr(vim.api.nvim_get_current_buf()) + client.request("workspace/executeCommand", + { command = "texlab.cleanArtifacts", arguments = { document = { uri = uri } } }) + end + end, settings = { texlab = { build = {