diff --git a/configs/nvim/lua/cmp-conf.lua b/configs/nvim/lua/cmp-conf.lua index a15ea71..914eb95 100644 --- a/configs/nvim/lua/cmp-conf.lua +++ b/configs/nvim/lua/cmp-conf.lua @@ -19,6 +19,9 @@ cmp.setup { latex_symbols = "[Latex]", })}), }, + experimental = { + ghost_text = true, + }, completion = { completeopt = "menu,menuone", }, diff --git a/configs/nvim/lua/keymappings.lua b/configs/nvim/lua/keymappings.lua index 6614cc2..b40f8da 100644 --- a/configs/nvim/lua/keymappings.lua +++ b/configs/nvim/lua/keymappings.lua @@ -38,6 +38,9 @@ map("n", "", "move +1", options) map("n", "", "move -2", options) map("i", "", "move +1", options) map("i", "", "move -2", options) +map("v", "", ":m '>+1gv=gv", options) +map("v", "", ":m '<-2gv=gv", options) + -- Faster git merge map("n", "gd", ":Gvdiffsplit!", options) diff --git a/configs/nvim/lua/plugins.lua b/configs/nvim/lua/plugins.lua index 631e895..ef7dd68 100644 --- a/configs/nvim/lua/plugins.lua +++ b/configs/nvim/lua/plugins.lua @@ -56,6 +56,7 @@ return require("packer").startup(function() -- Syntax / Autocomplete use "neovim/nvim-lspconfig" + use "github/copilot.vim" use "hrsh7th/nvim-cmp" use "hrsh7th/cmp-nvim-lsp" use "hrsh7th/cmp-path"