Add Copilot incl. auto-completion an chat

This commit is contained in:
Fabian Missbrenner 2025-03-12 17:36:05 +01:00
parent 3569e4ec8e
commit 1700a7c450
3 changed files with 47 additions and 7 deletions

View file

@ -626,7 +626,11 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
clangd = {},
clangd = {
capabilities = {
offsetEncoding = { 'utf-16' }, -- Match Copilot's encoding
},
},
-- gopls = {},
-- pyright = {},
-- rust_analyzer = {},
@ -841,6 +845,7 @@ require('lazy').setup({
group_index = 0,
},
{ name = 'nvim_lsp' },
{ name = 'copilot' },
{ name = 'luasnip' },
{ name = 'path' },
},