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:
parent
d6aa3f90fb
commit
b57eaa435a
77
dot_config/nvim/dot_luarc.json
Normal file
77
dot_config/nvim/dot_luarc.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "2123"
|
"NEWS.md": "2123"
|
||||||
|
@ -17,7 +17,6 @@ require("lazy").setup({
|
|||||||
{ 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" },
|
||||||
|
@ -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,
|
||||||
|
@ -9,7 +9,6 @@ return {
|
|||||||
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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
|
13
dot_config/nvim/lua/plugins/sourcegraph-copilot.lua
Normal file
13
dot_config/nvim/lua/plugins/sourcegraph-copilot.lua
Normal 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,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user