feat: added copilot

This commit is contained in:
Raj 2024-07-15 13:48:37 +05:30
parent f83674b6bd
commit bf51fdcc62
5 changed files with 30 additions and 23 deletions

View File

@ -4,6 +4,7 @@
"LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" }, "LuaSnip": { "branch": "master", "commit": "ce0a05ab4e2839e1c48d072c5236cce846a387bc" },
"aerial.nvim": { "branch": "master", "commit": "4d10acbcb760802ea74381ac3ed98cbb6e5f7805" }, "aerial.nvim": { "branch": "master", "commit": "4d10acbcb760802ea74381ac3ed98cbb6e5f7805" },
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" }, "alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
"astrocommunity": { "branch": "main", "commit": "09a82e154d407d75e8781889d86a4557f1328250" },
"astrocore": { "branch": "main", "commit": "45b56692e0db9509d822a7974e471beae519ca1d" }, "astrocore": { "branch": "main", "commit": "45b56692e0db9509d822a7974e471beae519ca1d" },
"astrolsp": { "branch": "main", "commit": "6d5eba44bdee5d6d23f28e0a6fd9342553f0216e" }, "astrolsp": { "branch": "main", "commit": "6d5eba44bdee5d6d23f28e0a6fd9342553f0216e" },
"astrotheme": { "branch": "main", "commit": "48b8cb48d5d9fad48324eec2a101a5fa2cac57f9" }, "astrotheme": { "branch": "main", "commit": "48b8cb48d5d9fad48324eec2a101a5fa2cac57f9" },
@ -16,6 +17,7 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"conform.nvim": { "branch": "master", "commit": "cd75be867f2331b22905f47d28c0c270a69466aa" }, "conform.nvim": { "branch": "master", "commit": "cd75be867f2331b22905f47d28c0c270a69466aa" },
"copilot": { "branch": "master", "commit": "86537b286f18783f8b67bccd78a4ef4345679625" },
"dressing.nvim": { "branch": "master", "commit": "71349f24c6e07b39f33600985843c289ca735308" }, "dressing.nvim": { "branch": "master", "commit": "71349f24c6e07b39f33600985843c289ca735308" },
"friendly-snippets": { "branch": "main", "commit": "45a1b96e46efe5fce8af325d4bed45feb9d29d0f" }, "friendly-snippets": { "branch": "main", "commit": "45a1b96e46efe5fce8af325d4bed45feb9d29d0f" },
"gitsigns.nvim": { "branch": "main", "commit": "375c44bdfdde25585466a966f00c2e291db74f2d" }, "gitsigns.nvim": { "branch": "main", "commit": "375c44bdfdde25585466a966f00c2e291db74f2d" },

View File

@ -1,5 +1,3 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroCommunity: import any community modules here -- AstroCommunity: import any community modules here
-- We import this file in `lazy_setup.lua` before the `plugins/` folder. -- We import this file in `lazy_setup.lua` before the `plugins/` folder.
-- This guarantees that the specs are processed before any user plugins. -- This guarantees that the specs are processed before any user plugins.

View File

@ -3,7 +3,7 @@ return {
"catppuccin/nvim", "catppuccin/nvim",
name = "catppuccin", name = "catppuccin",
opts = { opts = {
-- dim_inactive = { enabled = true, percentage = 0.25 }, dim_inactive = { enabled = true, percentage = 0.1 },
}, },
}, },
} }

7
lua/plugins/copilot.lua Normal file
View File

@ -0,0 +1,7 @@
return {
{
"zbirenbaum/copilot.lua",
name = "copilot",
config = function() require("copilot").setup() end,
},
}

View File

@ -5,7 +5,7 @@ if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- fit in the normal config locations above can go here -- fit in the normal config locations above can go here
-- Set up custom filetypes -- Set up custom filetypes
vim.filetype.add { vim.filetype.add({
extension = { extension = {
foo = "fooscript", foo = "fooscript",
}, },
@ -15,4 +15,4 @@ vim.filetype.add {
pattern = { pattern = {
["~/%.config/foo/.*"] = "fooscript", ["~/%.config/foo/.*"] = "fooscript",
}, },
} })