Compare commits

..

No commits in common. "e4aa8189054a8f42a3f63d2b7cbebe1470733b03" and "db42c3532053e976a58a71975517ce5cc33d271f" have entirely different histories.

5 changed files with 21 additions and 7 deletions

View File

@ -23,11 +23,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1690370995,
"narHash": "sha256-9z//23jGegLJrf3ITStLwVf715O39dq5u48Kr/XW14U=",
"lastModified": 1688594934,
"narHash": "sha256-3dUo20PsmUd57jVZRx5vgKyIN1tv+v/JQweZsve5q/A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f3fbbc36b4e179a5985b9ab12624e9dfe7989341",
"rev": "e11142026e2cef35ea52c9205703823df225c947",
"type": "github"
},
"original": {
@ -39,11 +39,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1690272529,
"narHash": "sha256-MakzcKXEdv/I4qJUtq/k/eG+rVmyOZLnYNC2w1mB59Y=",
"lastModified": 1688590700,
"narHash": "sha256-ZF055rIUP89cVwiLpG5xkJzx00gEuuGFF60Bs/LM3wc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ef99fa5c5ed624460217c31ac4271cfb5cb2502c",
"rev": "f292b4964cb71f9dfbbd30dc9f511d6165cd109b",
"type": "github"
},
"original": {

View File

@ -0,0 +1,6 @@
require("copilot").setup({
suggestion = { enabled = false },
panel = { enabled = false },
})
require('copilot_cmp').setup({})

View File

@ -147,6 +147,10 @@ in
# debugging
nvim-dap
nvim-dap-ui
# copilot
copilot-lua
copilot-cmp
];
extraConfig = ''
@ -184,6 +188,8 @@ in
vim.g.gitblame_date_format = "%r"
${builtins.readFile ./copilot.lua }
EOF
'';
};

View File

@ -172,7 +172,7 @@ vim.diagnostic.config({
})
-- setup diagnostics signs
local diagnostics_signs = { Error = "", Warn = "", Hint = "", Info = "" }
local diagnostics_signs = { Error = "", Want = "", Hint = "", Info = "" }
for type, icon in pairs(diagnostics_signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })

View File

@ -15,6 +15,7 @@ cmp.setup({
end
},
sources = cmp.config.sources({
{ name = "copilot" },
{ name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help" },
{ name = "luasnip" },
@ -59,6 +60,7 @@ cmp.setup({
fields = { "menu", "abbr", "kind" },
format = function(entry, item)
local menu_icon = {
copilot = "",
nvim_lsp = "λ",
luasnip = "",
buffer = "Ω",