Skip to content

Instantly share code, notes, and snippets.

@bjonnh
Created May 8, 2020 14:37
Show Gist options
  • Save bjonnh/dc274cc64aef296d65e37fe71bcf6cbc to your computer and use it in GitHub Desktop.
Save bjonnh/dc274cc64aef296d65e37fe71bcf6cbc to your computer and use it in GitHub Desktop.
;;; lsp-sparql.el --- lsp-sparql config -*- lexical-binding: t; -*-
;; Copyright (C) 2020 lsp-mode developers
;; Author: Jonathan Bisson <research@bjonnh.net>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; lsp-sparql client
;;; Code:
(require 'lsp-mode)
(defgroup lsp-sparql nil
"LSP support for Sparql"
:group 'lsp-mode
:link '(url-link "https://github.com/bjonnh/lsp-sparql")
:package-version '(lsp-mode . "6.3"))
(defcustom lsp-sparql-language-server-command `("node"
"node_modules/sparql-language-server/dist/cli.js"
"--stdio")
"Command to start eslint server."
:risky t
:type '(repeat string)
:package-version '(lsp-mode . "6.3"))
(defcustom lsp-sparql-language-server-client-version "3.2.0"
"Choose client version."
:type 'string
:group 'lsp-sparql
:package-version '(lsp-mode . "6.3"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection
(lambda () lsp-sparql-language-server-command)
)
:major-modes '(sparql-mode)
:priority -1
:language-id "SPARQL"
:server-id 'sparql-language-server))
(provide 'lsp-sparql)
;;; lsp-sparql.el ends here
;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment