config(nvim): use <M-Right> to accept copilot suggestions

enable better i for maple mono
main
sudo pacman -Syu 2024-03-17 16:07:38 +07:00
parent d9837bd33d
commit b68d432904
3 changed files with 14 additions and 7 deletions

View File

@ -26,10 +26,10 @@ symbol_map U+EA60-U+EBEB Symbols Nerd Font Mono
symbol_map U+E276C-U+2771 Symbols Nerd Font Mono
symbol_map U+2500-U+259F Symbols Nerd Font Mono
font_features MapleMono-Regular -calt +zero
font_features MapleMono-Regular_Bold -calt +zero
font_features MapleMono-Italic -calt +zero
font_features MapleMono-Italic_Bold-Italic -calt +zero
font_features MapleMono-Regular -calt +cv03 +zero
font_features MapleMono-Regular_Bold -calt +cv03 +zero
font_features MapleMono-Italic -calt +cv03 +zero
font_features MapleMono-Italic_Bold-Italic -calt +cv03 +zero
modify_font cell_height 120%

View File

@ -414,9 +414,6 @@ require("lazy").setup({
vim.g.neoformat_enabled_zsh = { "shfmt" }
vim.g.shfmt_opt = "-ci"
end,
config = function()
vim.keymap.set("v", "=", ":Neoformat<CR>")
end,
},
-- https://github.com/neovim/nvim-lspconfig
@ -508,6 +505,13 @@ require("lazy").setup({
yaml = true,
zsh = true,
}
vim.g.copilot_no_tab_map = true
end,
config = function()
vim.keymap.set("i", "<M-Right>", 'copilot#Accept("\\<CR>")', {
expr = true,
replace_keycodes = false,
})
end,
},
})

View File

@ -45,3 +45,6 @@ DISABLE_AUTO_TITLE=true
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
# https://github.com/Aloxaf/fzf-tab
zstyle ':completion:*' menu no