diff options
| author | Lvim Tech <82431193+lvim-tech@users.noreply.github.com> | 2023-10-12 03:16:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-12 08:16:07 +0800 |
| commit | aa306c3f846158818222c9ad3eb8326c8c9b7c1f (patch) | |
| tree | b80e1c3380283765af30e8607b0568c51d73aea3 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.tar nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.tar.gz nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.tar.bz2 nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.tar.lz nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.tar.xz nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.tar.zst nvim-lspconfig-aa306c3f846158818222c9ad3eb8326c8c9b7c1f.zip | |
feat: add Nginx language server (#2856)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/nginx_language_server.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/nginx_language_server.lua b/lua/lspconfig/server_configurations/nginx_language_server.lua new file mode 100644 index 00000000..2cbb1d63 --- /dev/null +++ b/lua/lspconfig/server_configurations/nginx_language_server.lua @@ -0,0 +1,23 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'nginx-language-server' }, + filetypes = { 'nginx' }, + root_dir = function(fname) + return util.root_pattern('nginx.conf', '.git') or util.find_git_ancestor(fname) + end, + single_file_support = true, + }, + docs = { + description = [[ +https://pypi.org/project/nginx-language-server/ + +`nginx-language-server` can be installed via pip: + +```sh +pip install -U nginx-language-server +``` + ]], + }, +} |
