diff --git a/nvim/.config/nvim/lua/plugins/copilot.lua b/nvim/.config/nvim/lua/plugins/copilot.lua deleted file mode 100644 index 9be4793..0000000 --- a/nvim/.config/nvim/lua/plugins/copilot.lua +++ /dev/null @@ -1,20 +0,0 @@ -return { - { - "github/copilot.vim", - event = { - "BufReadPost", - "BufNewFile" - }, - cmd = { - "Copilot" - }, - init = function() - vim.g.copilot_no_tab_map = true - vim.g.copilot_assume_mapped = true - vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { - silent = true, - expr = true - }) - end - } -} diff --git a/nvim/.config/nvim/lua/plugins/lua_copilot.lua b/nvim/.config/nvim/lua/plugins/lua_copilot.lua new file mode 100644 index 0000000..52eeb9a --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/lua_copilot.lua @@ -0,0 +1,18 @@ +return { + "zbirenbaum/copilot.lua", + cmd = "Copilot", + event = "InsertEnter", + opts = { + suggestion = { + auto_trigger = true, + keymap = { + accept = "", + -- accept_word = false, + -- accept_line = false, + -- next = "", + -- prev = "", + -- dismiss = "" + } + } + } +} diff --git a/zsh/.zshrc b/zsh/.zshrc index cacc6e1..f863970 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -53,4 +53,4 @@ eval "$(thefuck --alias)" . "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" -bindkey '^y' autosuggest-accept +bindkey '^l' autosuggest-accept