Skip to content

Commit

Permalink
add config for code_action
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Aug 8, 2023
1 parent 1e3012e commit ec0367b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lua/LspUI/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,23 @@ local default_lighthulb_config = {
icon = "💡",
}

local default_code_action_config = {
enable = true,
command_enable = true,
icon = "💡",
key_binding = {
exec = "<cr>",
prev = "k",
next = "j",
quit = "q",
},
}

-- default config
local default_config = {
rename = default_rename_config,
lighthulb = default_lighthulb_config,
code_action = default_code_action_config,
}

-- Prevent plugins from being initialized multiple times
Expand All @@ -43,4 +57,6 @@ M.setup = function(config)
is_already_init = true
end

--TODO: Should add api to ensure that the configuration can be modified in real time

return M

0 comments on commit ec0367b

Please sign in to comment.