Skip to content

Commit d602cca

Browse files
Update copilot settings
1 parent 255a013 commit d602cca

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

init.lua

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,6 @@ vim.opt.timeoutlen = 300
141141
vim.opt.splitright = true
142142
vim.opt.splitbelow = true
143143

144-
-- Sets how neovim will display certain whitespace characters in the editor.
145-
-- See `:help 'list'`
146-
-- and `:help 'listchars'`
147-
vim.opt.list = true
148-
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
149-
150144
-- Preview substitutions live, as you type!
151145
vim.opt.inccommand = 'split'
152146

@@ -676,38 +670,41 @@ require('lazy').setup({
676670
local servers = {
677671
-- clangd = {},
678672
gopls = {
679-
gofumpt = true,
680-
codelenses = {
681-
gc_details = false,
682-
generate = true,
683-
regenerate_cgo = true,
684-
run_govulncheck = true,
685-
test = true,
686-
tidy = true,
687-
upgrade_dependency = true,
688-
vendor = true,
689-
},
690-
hints = {
691-
assignVariableTypes = true,
692-
compositeLiteralFields = true,
693-
compositeLiteralTypes = true,
694-
constantValues = true,
695-
functionTypeParameters = true,
696-
parameterNames = true,
697-
rangeVariableTypes = true,
698-
},
699-
analyses = {
700-
fieldalignment = true,
701-
nilness = true,
702-
unusedparams = true,
703-
unusedwrite = true,
704-
useany = true,
673+
settings = {
674+
gopls = {
675+
gofumpt = true,
676+
codelenses = {
677+
gc_details = false,
678+
generate = true,
679+
regenerate_cgo = true,
680+
run_govulncheck = true,
681+
test = true,
682+
tidy = true,
683+
upgrade_dependency = true,
684+
vendor = true,
685+
},
686+
hints = {
687+
assignVariableTypes = true,
688+
compositeLiteralFields = true,
689+
compositeLiteralTypes = true,
690+
constantValues = true,
691+
functionTypeParameters = true,
692+
parameterNames = true,
693+
rangeVariableTypes = true,
694+
},
695+
analyses = {
696+
nilness = true,
697+
unusedparams = true,
698+
unusedwrite = true,
699+
useany = true,
700+
},
701+
usePlaceholders = true,
702+
completeUnimported = true,
703+
staticcheck = true,
704+
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
705+
semanticTokens = true,
706+
},
705707
},
706-
usePlaceholders = true,
707-
completeUnimported = true,
708-
staticcheck = true,
709-
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
710-
semanticTokens = true,
711708
},
712709
ruby_lsp = {},
713710

lua/custom/plugins/copilot.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ return {
1414
{
1515
'zbirenbaum/copilot-cmp',
1616
dependencies = 'copilot.lua',
17-
opts = {},
17+
opts = {
18+
copilot_model = 'gpt-4o-copilot', -- Current LSP default is gpt-35-turbo, supports gpt-4o-copilot
19+
},
1820
config = function(_, opts)
1921
local copilot_cmp = require 'copilot_cmp'
2022
copilot_cmp.setup(opts)

0 commit comments

Comments
 (0)