Skip to content

Commit

Permalink
run stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
dhananjaylatkar committed Aug 1, 2024
1 parent 3dfea38 commit a0a6b4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/cscope/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ end

M.default_sym = function(op)
local arg = "<cword>"
if vim.tbl_contains({"f", "i", "7", "8"}, op) then
if vim.tbl_contains({ "f", "i", "7", "8" }, op) then
arg = "<cfile>"
end
return vim.fn.expand(arg)
Expand Down
7 changes: 6 additions & 1 deletion lua/cscope_maps/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ M.opts = {

-- function to print xcscpoe.el like prompts
M.cscope_prompt = function(operation)
if not vim.tbl_contains(vim.tbl_keys(cs.op_s_n), operation) and not vim.tbl_contains(vim.tbl_values(cs.op_s_n), operation) then return end
if
not vim.tbl_contains(vim.tbl_keys(cs.op_s_n), operation)
and not vim.tbl_contains(vim.tbl_values(cs.op_s_n), operation)
then
return
end
if vim.tbl_contains(vim.tbl_values(cs.op_s_n), operation) then
operation = cs.op_n_s[operation]
end
Expand Down

0 comments on commit a0a6b4c

Please sign in to comment.