diff options
| author | Raphael <glepnir@neovim.pro> | 2022-12-20 12:13:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-20 12:13:02 +0800 |
| commit | aa2200825861ea1285f7ac0be8010fc0c775b325 (patch) | |
| tree | 59579502a1ca2718f3ea92de009c41f0d1d6bc97 /lua | |
| parent | fix(gdscript): support get the port from env variable (#2313) (diff) | |
| download | nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.tar nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.tar.gz nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.tar.bz2 nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.tar.lz nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.tar.xz nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.tar.zst nvim-lspconfig-aa2200825861ea1285f7ac0be8010fc0c775b325.zip | |
feat: add uvl support (#2331)
* feat: add uvl support
* fix: format
* fix: format
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/uvls.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/uvls.lua b/lua/lspconfig/server_configurations/uvls.lua new file mode 100644 index 00000000..c8d75b1a --- /dev/null +++ b/lua/lspconfig/server_configurations/uvls.lua @@ -0,0 +1,29 @@ +local util = require 'lspconfig.util' +return { + default_config = { + cmd = { 'uvls' }, + filetypes = { 'uvl' }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +https://codeberg.org/caradhras/uvls +Language server for UVL, written using tree sitter and rust. +You can install the server easily using cargo: +```sh +git clone https://codeberg.org/caradhras/uvls +cd uvls +cargo install --path . +``` +Note: To activate properly nvim needs to know the uvl filetype. +You can add it via: +```lua +vim.cmd(\[\[au BufRead,BufNewFile *.uvl setfiletype uvl\]\]) +``` +]], + default_config = { + root_dir = [[util.find_git_ancestor]], + }, + }, +} |
