Add .config/nvim/.luarc.json

Update .config/nvim/lazyvim.json
Update .config/nvim/lua/config/lazy.lua
Update .config/nvim/lua/plugins/copilot.lua
Update .config/nvim/lua/plugins/go.lua
Update .config/nvim/lua/plugins/nvim-cmp.lua
Add .config/nvim/lua/plugins/sourcegraph-copilot.lua
This commit is contained in:
Kasper Juul Hermansen 2024-03-03 13:15:47 +01:00
parent d6aa3f90fb
commit b57eaa435a
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
7 changed files with 104 additions and 14 deletions

View File

@ -0,0 +1,77 @@
{
"workspace.library": [
"/Users/kah/.local/share/nvim/lazy/neodev.nvim/types/stable",
"/opt/homebrew/Cellar/neovim/0.9.5/share/nvim/runtime/lua",
"/Users/kah/.local/share/nvim/lazy/neo-tree.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/indent-blankline.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/cmp_luasnip/lua",
"/Users/kah/.local/share/nvim/lazy/neoconf.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/ranger.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/mini.pairs/lua",
"/Users/kah/.local/share/nvim/lazy/mini.surround/lua",
"/Users/kah/.local/share/nvim/lazy/telescope-fzf-native.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/conform.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nui.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-ts-context-commentstring/lua",
"/Users/kah/.local/share/nvim/lazy/mini.comment/lua",
"/Users/kah/.local/share/nvim/lazy/gitsigns.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/mini.ai/lua",
"/Users/kah/.local/share/nvim/lazy/mason.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/vim-illuminate/lua",
"/Users/kah/.local/share/nvim/lazy/crates.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/mini.hipatterns/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-ts-autotag/lua",
"/Users/kah/.local/share/nvim/lazy/dashboard-nvim/lua",
"/Users/kah/.local/share/nvim/lazy/trouble.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/todo-comments.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/lazy.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/project.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/noice.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/which-key.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/sg.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-treesitter-textobjects/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-lspconfig/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-treesitter-context/lua",
"/Users/kah/.local/share/nvim/lazy/telescope.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/catppuccin/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-dap/lua",
"/Users/kah/.local/share/nvim/lazy/tokyonight.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/LazyVim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-dap-ui/lua",
"/Users/kah/.local/share/nvim/lazy/vim-startuptime/lua",
"/Users/kah/.local/share/nvim/lazy/tmux.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-dap-virtual-text/lua",
"/Users/kah/.local/share/nvim/lazy/zen-mode.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/toggleterm.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/rust-tools.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/plenary.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/neorg/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-spectre/lua",
"/Users/kah/.local/share/nvim/lazy/cmp-nvim-lsp/lua",
"/Users/kah/.local/share/nvim/lazy/mason-nvim-dap.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-lint/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-cmp/lua",
"/Users/kah/.local/share/nvim/lazy/persistence.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-notify/lua",
"/Users/kah/.local/share/nvim/lazy/cmp-buffer/lua",
"/Users/kah/.local/share/nvim/lazy/mason-lspconfig.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/flash.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/mini.indentscope/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-treesitter/lua",
"/Users/kah/.local/share/nvim/lazy/mini.bufremove/lua",
"/Users/kah/.local/share/nvim/lazy/cmp-path/lua",
"/Users/kah/.local/share/nvim/lazy/dressing.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/neodev.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/bufferline.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/nvim-web-devicons/lua",
"/Users/kah/.local/share/nvim/lazy/copilot-cmp/lua",
"/Users/kah/.local/share/nvim/lazy/go.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/lualine.nvim/lua",
"/Users/kah/.local/share/nvim/lazy/LuaSnip/lua",
"/Users/kah/.local/share/nvim/lazy/guihua.lua/lua",
"/Users/kah/.config/nvim/lua",
"/Users/kah/.local/share/nvim/lazy/neoconf.nvim/types",
"/Users/kah/.local/share/nvim/lazy/neoconf.nvim/types/lua",
"${3rd}/luv/library"
]
}

View File

@ -1,9 +1,8 @@
{ {
"extras": [ "extras": [
], ],
"news": { "news": {
"NEWS.md": "2123" "NEWS.md": "2123"
}, },
"version": 2 "version": 2
} }

View File

@ -10,14 +10,13 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- add LazyVim and import its plugins -- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" }, { "LazyVim/LazyVim", import = "lazyvim.plugins" },
--{ import = "lazyvim.plugins.extras.editor.flash" }, --{ import = "lazyvim.plugins.extras.editor.flash" },
--{ import = "lazyvim.plugins.extras.ui.mini-animate" }, --{ import = "lazyvim.plugins.extras.ui.mini-animate" },
{ import = "lazyvim.plugins.extras.util.mini-hipatterns" }, { import = "lazyvim.plugins.extras.util.mini-hipatterns" },
{ import = "lazyvim.plugins.extras.util.project" }, { import = "lazyvim.plugins.extras.util.project" },
{ import = "lazyvim.plugins.extras.dap.core" }, { import = "lazyvim.plugins.extras.dap.core" },
-- import any extras modules here -- import any extras modules here
-- { import = "lazyvim.plugins.extras.lang.typescript" }, -- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" }, -- { import = "lazyvim.plugins.extras.lang.json" },

View File

@ -1,12 +1,12 @@
return { return {
"zbirenbaum/copilot.lua", "zbirenbaum/copilot.lua",
enabled = false, enabled = true,
cmd = "Copilot", cmd = "Copilot",
event = "InsertEnter", event = "InsertEnter",
config = function() config = function()
require("copilot").setup({ require("copilot").setup({
suggestion = { enabled = false }, suggestion = { enabled = true },
panel = { enabled = false }, panel = { enabled = true, auto_refresh = true },
--suggestion = { --suggestion = {
-- auto_trigger = true, -- auto_trigger = true,

View File

@ -1,6 +1,6 @@
return { return {
"ray-x/go.nvim", "ray-x/go.nvim",
dependencies = { -- optional packages dependencies = { -- optional packages
"ray-x/guihua.lua", "ray-x/guihua.lua",
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
@ -8,8 +8,7 @@ return {
config = function() config = function()
require("go").setup() require("go").setup()
end, end,
event = {"CmdlineEnter"}, event = { "CmdlineEnter" },
ft = {"go", 'gomod'}, ft = { "go", "gomod" },
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
} }

View File

@ -2,8 +2,11 @@ return {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
opts = function(_, opts) opts = function(_, opts)
local cmp = require("cmp") local cmp = require("cmp")
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "copilot", group_index = 2 } })) opts.sources = cmp.config.sources(vim.list_extend(opts.sources, {
{ name = "copilot", group_index = 2 },
{ name = "cody", group_index = 2 },
}))
return opts return opts
end end,
} }

View File

@ -0,0 +1,13 @@
return {
{
"sourcegraph/sg.nvim",
enabled = false,
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
-- If you have a recent version of lazy.nvim, you don't need to add this!
-- build = "nvim -l build/init.lua",
config = function()
require("sg").setup({})
end,
},
}