From 37808a6f6e89abd05e20c0f5aa7bd82eaf7880bd Mon Sep 17 00:00:00 2001 From: Jacob Hoopes Date: Mon, 15 May 2023 14:51:52 -0600 Subject: [PATCH] Add Github Copilot plugin for neovim --- init.lua | 4 ++-- lua/custom/plugins/copilot.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 lua/custom/plugins/copilot.lua diff --git a/init.lua b/init.lua index e30bc323..5cf5068a 100644 --- a/init.lua +++ b/init.lua @@ -298,13 +298,13 @@ vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { de -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, + ensure_installed = { 'c', 'cpp', 'go', 'java', 'javascript', 'lua', 'python', 'ruby', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, highlight = { enable = true }, - indent = { enable = true, disable = { 'python' } }, + indent = { enable = true, disable = { 'python', 'ruby' } }, incremental_selection = { enable = true, keymaps = { diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..1ffa9701 --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -0,0 +1,3 @@ +return { + "github/copilot.vim" +}