aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2023-04-22 09:47:10 +0800
committerGitHub <noreply@github.com>2023-04-22 09:47:10 +0800
commit156ba5596ac0fe41e408fd1d0ca48c33a004e6c2 (patch)
tree52917cfaa587a10f883e5f87202c63c4fbabe5dc /lua
parentdocs: remove plugin manager (#2563) (diff)
downloadnvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.tar
nvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.tar.gz
nvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.tar.bz2
nvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.tar.lz
nvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.tar.xz
nvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.tar.zst
nvim-lspconfig-156ba5596ac0fe41e408fd1d0ca48c33a004e6c2.zip
feat: add digestif support (#2568)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/digestif.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/digestif.lua b/lua/lspconfig/server_configurations/digestif.lua
new file mode 100644
index 00000000..506348b7
--- /dev/null
+++ b/lua/lspconfig/server_configurations/digestif.lua
@@ -0,0 +1,28 @@
+local util = require 'lspconfig.util'
+
+local bin_name = 'digestif'
+local cmd = { bin_name }
+
+if vim.fn.has 'win32' == 1 then
+ cmd = { 'cmd.exe', '/C', bin_name }
+end
+
+return {
+ default_config = {
+ cmd = cmd,
+ filetypes = { 'tex', 'plaintex', 'context' },
+ root_dir = util.find_git_ancestor,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/astoff/digestif
+
+Digestif is a code analyzer, and a language server, for LaTeX, ConTeXt et caterva. It provides
+
+context-sensitive completion, documentation, code navigation, and related functionality to any
+
+text editor that speaks the LSP protocol.
+]],
+ },
+}