diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 14:45:08 -0700 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 15:49:27 -0700 |
| commit | ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c (patch) | |
| tree | 77d533dc9606ca7e9b30d1a96baebf3de325d2a8 /lua/lspconfig/rnix.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.gz nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.bz2 nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.lz nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.xz nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.zst nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.zip | |
ci: lint and format with stylua
Diffstat (limited to 'lua/lspconfig/rnix.lua')
| -rw-r--r-- | lua/lspconfig/rnix.lua | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/lua/lspconfig/rnix.lua b/lua/lspconfig/rnix.lua index ab879a75..5fb8d997 100644 --- a/lua/lspconfig/rnix.lua +++ b/lua/lspconfig/rnix.lua @@ -1,21 +1,19 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' +local configs = require "lspconfig/configs" +local util = require "lspconfig/util" local name = "rnix" configs[name] = { default_config = { - cmd = {"rnix-lsp"}; - filetypes = {"nix"}; + cmd = { "rnix-lsp" }, + filetypes = { "nix" }, root_dir = function(fname) return util.find_git_ancestor(fname) or vim.loop.os_homedir() - end; - settings = { - }; - init_options = { - }; - }; + end, + settings = {}, + init_options = {}, + }, docs = { description = [[ https://github.com/nix-community/rnix-lsp @@ -26,9 +24,9 @@ To install manually, run `cargo install rnix-lsp`. If you are using nix, rnix-ls This server accepts configuration via the `settings` key. - ]]; + ]], default_config = { - root_dir = "vim's starting directory"; - }; - }; -}; + root_dir = "vim's starting directory", + }, + }, +} |
