config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

lsp-mint.el (1445B)


      1 ;;; lsp-mint.el --- Mint Language Server configuration  -*- lexical-binding: t; -*-
      2 
      3 ;; Copyright (C) 2019  Ivan Yonchovski
      4 
      5 ;; Author: Ivan Yonchovski <yyoncho@gmail.com>
      6 ;; Keywords:
      7 
      8 ;; This program is free software; you can redistribute it and/or modify
      9 ;; it under the terms of the GNU General Public License as published by
     10 ;; the Free Software Foundation, either version 3 of the License, or
     11 ;; (at your option) any later version.
     12 
     13 ;; This program is distributed in the hope that it will be useful,
     14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
     15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16 ;; GNU General Public License for more details.
     17 
     18 ;; You should have received a copy of the GNU General Public License
     19 ;; along with this program.  If not, see <https://www.gnu.org/licenses/>.
     20 
     21 ;;; Commentary:
     22 
     23 ;;
     24 
     25 ;;; Code:
     26 
     27 (require 'lsp-mode)
     28 
     29 (defgroup lsp-mint nil
     30   "LSP support for mint-lang."
     31   :group 'lsp-mode
     32   :link '(url-link "https://github.com/mint-lang/mint")
     33   :package-version '(lsp-mode . "6.1"))
     34 
     35 (defcustom lsp-clients-mint-executable '("mint" "ls")
     36   "Command to start the mint language server."
     37   :group 'lsp-mint
     38   :risky t
     39   :type 'file)
     40 
     41 ;; Mint
     42 (lsp-register-client
     43  (make-lsp-client :new-connection (lsp-stdio-connection lsp-clients-mint-executable)
     44                   :major-modes '(mint-mode)
     45                   :server-id 'mint-ls))
     46 
     47 (provide 'lsp-mint)
     48 ;;; lsp-mint.el ends here