From cd1ccf056be9cbcc3d5cbefff08135276bc476ed Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 13 Jul 2021 10:41:39 -0700 Subject: chore: change stylua to single quotes (#1068) --- lua/lspconfig/vala_ls.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lua/lspconfig/vala_ls.lua') diff --git a/lua/lspconfig/vala_ls.lua b/lua/lspconfig/vala_ls.lua index 684e54a0..652f7ea3 100644 --- a/lua/lspconfig/vala_ls.lua +++ b/lua/lspconfig/vala_ls.lua @@ -1,18 +1,18 @@ -local configs = require "lspconfig/configs" -local util = require "lspconfig/util" +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' local meson_matcher = function(path) - local pattern = "meson.build" + local pattern = 'meson.build' local f = vim.fn.glob(util.path.join(path, pattern)) - if f == "" then + if f == '' then return nil end for line in io.lines(f) do -- skip meson comments - if not line:match "^%s*#.*" then - local str = line:gsub("%s+", "") - if str ~= "" then - if str:match "^project%(" then + if not line:match '^%s*#.*' then + local str = line:gsub('%s+', '') + if str ~= '' then + if str:match '^project%(' then return path else break @@ -24,15 +24,15 @@ end configs.vala_ls = { default_config = { - cmd = { "vala-language-server" }, - filetypes = { "vala", "genie" }, + cmd = { 'vala-language-server' }, + filetypes = { 'vala', 'genie' }, root_dir = function(fname) local root = util.search_ancestors(fname, meson_matcher) return root or util.find_git_ancestor(fname) end, }, docs = { - description = "https://github.com/benwaffle/vala-language-server", + description = 'https://github.com/benwaffle/vala-language-server', default_config = { root_dir = [[root_pattern("meson.build", ".git")]], }, -- cgit v1.2.3-70-g09d2