Skip to content

Commit

Permalink
fix: conditions & typos
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasRanarison committed Oct 10, 2023
1 parent a44fb10 commit f391ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The default configuration:
label = "NonText",
},
},
popup = { -- remplaces the default prompt when selecting code actions
popup = { -- replaces the default prompt when selecting code actions
enable = true,
center = false,
border = "rounded",
Expand Down
2 changes: 1 addition & 1 deletion lua/clear-action/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ M.setup = function(options)
local client = vim.lsp.get_client_by_id(args.data.client_id)
local cmd = vim.api.nvim_buf_create_user_command

if client and client.supports_method("textDocument/codeAction") then return end
if not client or not client.supports_method("textDocument/codeAction") then return end

signs.on_attach(bufnr)
mappings.on_attach(bufnr, client)
Expand Down

0 comments on commit f391ec6

Please sign in to comment.