From bf51fdcc626b260f8151b530b98bd47fcda6ef5b Mon Sep 17 00:00:00 2001 From: Raj Sharma Date: Mon, 15 Jul 2024 13:48:37 +0530 Subject: [PATCH] feat: added copilot --- lazy-lock.json | 2 ++ lua/community.lua | 8 +++----- lua/plugins/catppuccin.lua | 14 +++++++------- lua/plugins/copilot.lua | 7 +++++++ lua/polish.lua | 22 +++++++++++----------- 5 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 lua/plugins/copilot.lua diff --git a/lazy-lock.json b/lazy-lock.json index 2f9f33d..228ba0b 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -4,6 +4,7 @@ "LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" }, "aerial.nvim": { "branch": "master", "commit": "4d10acbcb760802ea74381ac3ed98cbb6e5f7805" }, "alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" }, + "astrocommunity": { "branch": "main", "commit": "09a82e154d407d75e8781889d86a4557f1328250" }, "astrocore": { "branch": "main", "commit": "45b56692e0db9509d822a7974e471beae519ca1d" }, "astrolsp": { "branch": "main", "commit": "6d5eba44bdee5d6d23f28e0a6fd9342553f0216e" }, "astrotheme": { "branch": "main", "commit": "48b8cb48d5d9fad48324eec2a101a5fa2cac57f9" }, @@ -16,6 +17,7 @@ "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "conform.nvim": { "branch": "master", "commit": "cd75be867f2331b22905f47d28c0c270a69466aa" }, + "copilot": { "branch": "master", "commit": "86537b286f18783f8b67bccd78a4ef4345679625" }, "dressing.nvim": { "branch": "master", "commit": "71349f24c6e07b39f33600985843c289ca735308" }, "friendly-snippets": { "branch": "main", "commit": "45a1b96e46efe5fce8af325d4bed45feb9d29d0f" }, "gitsigns.nvim": { "branch": "main", "commit": "375c44bdfdde25585466a966f00c2e291db74f2d" }, diff --git a/lua/community.lua b/lua/community.lua index c842899..17ff481 100644 --- a/lua/community.lua +++ b/lua/community.lua @@ -1,12 +1,10 @@ -if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE - -- AstroCommunity: import any community modules here -- We import this file in `lazy_setup.lua` before the `plugins/` folder. -- This guarantees that the specs are processed before any user plugins. ---@type LazySpec return { - "AstroNvim/astrocommunity", - { import = "astrocommunity.pack.lua" }, - -- import/override with your plugins folder + "AstroNvim/astrocommunity", + { import = "astrocommunity.pack.lua" }, + -- import/override with your plugins folder } diff --git a/lua/plugins/catppuccin.lua b/lua/plugins/catppuccin.lua index 0c5eb69..b5c8057 100644 --- a/lua/plugins/catppuccin.lua +++ b/lua/plugins/catppuccin.lua @@ -1,9 +1,9 @@ return { - { - "catppuccin/nvim", - name = "catppuccin", - opts = { - -- dim_inactive = { enabled = true, percentage = 0.25 }, - }, - }, + { + "catppuccin/nvim", + name = "catppuccin", + opts = { + dim_inactive = { enabled = true, percentage = 0.1 }, + }, + }, } diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua new file mode 100644 index 0000000..ee0777e --- /dev/null +++ b/lua/plugins/copilot.lua @@ -0,0 +1,7 @@ +return { + { + "zbirenbaum/copilot.lua", + name = "copilot", + config = function() require("copilot").setup() end, + }, +} diff --git a/lua/polish.lua b/lua/polish.lua index 14c38cd..64184a3 100644 --- a/lua/polish.lua +++ b/lua/polish.lua @@ -5,14 +5,14 @@ if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE -- fit in the normal config locations above can go here -- Set up custom filetypes -vim.filetype.add { - extension = { - foo = "fooscript", - }, - filename = { - ["Foofile"] = "fooscript", - }, - pattern = { - ["~/%.config/foo/.*"] = "fooscript", - }, -} +vim.filetype.add({ + extension = { + foo = "fooscript", + }, + filename = { + ["Foofile"] = "fooscript", + }, + pattern = { + ["~/%.config/foo/.*"] = "fooscript", + }, +})