diff options
| author | Jalil David Salamé Messina <60845989+jalil-salame@users.noreply.github.com> | 2023-06-04 03:06:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-04 09:06:54 +0800 |
| commit | 6768a164ca096baf0c58d7578990817fe655a503 (patch) | |
| tree | 2bdde00b276bf36b4a25b05aed46e84424044a71 /lua | |
| parent | fix(rust_analyzer): check file is library (#2645) (diff) | |
| download | nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.tar nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.tar.gz nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.tar.bz2 nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.tar.lz nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.tar.xz nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.tar.zst nvim-lspconfig-6768a164ca096baf0c58d7578990817fe655a503.zip | |
feat: add statix support (#2646)
statix is anothe `nix` language server
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/statix.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/statix.lua b/lua/lspconfig/server_configurations/statix.lua new file mode 100644 index 00000000..050c0b50 --- /dev/null +++ b/lua/lspconfig/server_configurations/statix.lua @@ -0,0 +1,20 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'statix' }, + filetypes = { 'nix' }, + single_file_support = true, + root_dir = util.root_pattern('flake.nix', '.git'), + }, + docs = { + description = [[ +https://github.com/nerdypepper/statix + +lints and suggestions for the nix programming language + ]], + default_config = { + root_dir = [[root_pattern("flake.nix", ".git")]], + }, + }, +} |
