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,6 +1,5 @@
{
"extras": [
],
"news": {
"NEWS.md": "2123"

View File

@ -17,7 +17,6 @@ require("lazy").setup({
{ import = "lazyvim.plugins.extras.util.project" },
{ import = "lazyvim.plugins.extras.dap.core" },
-- import any extras modules here
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },

View File

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

View File

@ -9,7 +9,6 @@ return {
require("go").setup()
end,
event = { "CmdlineEnter" },
ft = {"go", 'gomod'},
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
ft = { "go", "gomod" },
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",
opts = function(_, opts)
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
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,
},
}