diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-13 10:41:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-13 10:41:39 -0700 |
| commit | cd1ccf056be9cbcc3d5cbefff08135276bc476ed (patch) | |
| tree | 82a0d7f77d4782b1aa06668298b48d7cf5ecb511 /lua/lspconfig/leanls.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.gz nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.bz2 nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.lz nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.xz nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.zst nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.zip | |
chore: change stylua to single quotes (#1068)
Diffstat (limited to 'lua/lspconfig/leanls.lua')
| -rw-r--r-- | lua/lspconfig/leanls.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/lspconfig/leanls.lua b/lua/lspconfig/leanls.lua index 946275dd..625e07ae 100644 --- a/lua/lspconfig/leanls.lua +++ b/lua/lspconfig/leanls.lua @@ -1,15 +1,15 @@ -local configs = require "lspconfig/configs" -local util = require "lspconfig/util" +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' configs.leanls = { default_config = { - cmd = { "lean", "--server" }, - filetypes = { "lean" }, + cmd = { 'lean', '--server' }, + filetypes = { 'lean' }, root_dir = function(fname) - return util.root_pattern "leanpkg.toml"(fname) or util.find_git_ancestor(fname) or util.path.dirname(fname) + return util.root_pattern 'leanpkg.toml'(fname) or util.find_git_ancestor(fname) or util.path.dirname(fname) end, on_new_config = function(config, root) - if not util.path.is_file(root .. "/leanpkg.toml") then + if not util.path.is_file(root .. '/leanpkg.toml') then return end if not config.cmd_cwd then |
