diff options
| author | Michael Fellinger <github@manveru.dev> | 2021-08-11 22:24:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 16:24:42 -0400 |
| commit | 614b075291c4a65a2b5b15ed4f0125d3253d6e7c (patch) | |
| tree | 802aa607a5d28a0a07a71611eb382bdeb111e806 /lua/lspconfig/mint.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.tar nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.tar.gz nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.tar.bz2 nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.tar.lz nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.tar.xz nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.tar.zst nvim-lspconfig-614b075291c4a65a2b5b15ed4f0125d3253d6e7c.zip | |
feat: add mint language server (#1136)
Diffstat (limited to 'lua/lspconfig/mint.lua')
| -rw-r--r-- | lua/lspconfig/mint.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/mint.lua b/lua/lspconfig/mint.lua new file mode 100644 index 00000000..3d213d08 --- /dev/null +++ b/lua/lspconfig/mint.lua @@ -0,0 +1,20 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.mint = { + default_config = { + cmd = { 'mint', 'ls' }, + filetypes = { 'mint' }, + root_dir = function(fname) + return util.root_pattern 'mint.json'(fname) or util.find_git_ancestor(fname) or util.path.dirname(fname) + end, + }, + docs = { + description = [[ +https://www.mint-lang.com + +Install Mint using the [instructions](https://www.mint-lang.com/install). +The language server is included since version 0.12.0. +]], + }, +} |
