From 623be4bf233c87e269fddd5ec730c54e1a4a6f79 Mon Sep 17 00:00:00 2001 From: Heechul Ryu Date: Sat, 1 Apr 2023 18:14:07 -0700 Subject: docs(nil_ls): add a link to an example (#2540) Unlike `rnix` that configure to use `nixpkgs-fmt` by default `nil` doesn't set it up by default which requires explicit setting which would be helpful to see the example config to set it correctly, hence the link. --- lua/lspconfig/server_configurations/nil_ls.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/nil_ls.lua b/lua/lspconfig/server_configurations/nil_ls.lua index ff7ebba2..49044c12 100644 --- a/lua/lspconfig/server_configurations/nil_ls.lua +++ b/lua/lspconfig/server_configurations/nil_ls.lua @@ -15,6 +15,8 @@ A new language server for Nix Expression Language. If you are using Nix with Flakes support, run `nix profile install github:oxalica/nil` to install. Check the repository README for more information. + +_See an example config at https://github.com/oxalica/nil/blob/main/dev/nvim-lsp.nix._ ]], default_config = { root_dir = [[root_pattern("flake.nix", ".git")]], -- cgit v1.2.3-70-g09d2