diff options
| author | Binh Tran <binhtran432k@gmail.com> | 2024-10-04 13:37:55 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 14:37:55 +0800 |
| commit | 6a439a8c973aea47b8e24e0e6ea8614da9801e8f (patch) | |
| tree | 7da0a0bec56022eee948602e473178b00897390a /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.tar nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.tar.gz nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.tar.bz2 nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.tar.lz nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.tar.xz nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.tar.zst nvim-lspconfig-6a439a8c973aea47b8e24e0e6ea8614da9801e8f.zip | |
feat: add ungrammar-languageserver support (#3312)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/ungrammar_languageserver.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/ungrammar_languageserver.lua b/lua/lspconfig/configs/ungrammar_languageserver.lua new file mode 100644 index 00000000..882721e5 --- /dev/null +++ b/lua/lspconfig/configs/ungrammar_languageserver.lua @@ -0,0 +1,34 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'ungrammar-languageserver', '--stdio' }, + filetypes = { 'ungrammar' }, + root_dir = util.find_git_ancestor, + single_file_support = true, + settings = { + ungrammar = { + validate = { + enable = true, + }, + format = { + enable = true, + }, + }, + }, + }, + docs = { + description = [[ +https://github.com/binhtran432k/ungrammar-language-features +Language Server for Ungrammar. + +Ungrammar Language Server can be installed via npm: +```sh +npm i ungrammar-languageserver -g +``` + ]], + default_config = { + root_dir = [[util.find_git_ancestor]], + }, + }, +} |
