Skip to content

Commit

Permalink
Nginx language server
Browse files Browse the repository at this point in the history
  • Loading branch information
lvim-tech committed Oct 11, 2023
1 parent 2b361e0 commit ac43614
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lua/lspconfig/server_configurations/nginx_language_server.lua
Original file line number Diff line number Diff line change
@@ -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
```
]],
},
}

0 comments on commit ac43614

Please sign in to comment.