Update copilot settings
This commit is contained in:
parent
255a01317d
commit
d602ccad5d
71
init.lua
71
init.lua
|
@ -141,12 +141,6 @@ vim.opt.timeoutlen = 300
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
vim.opt.splitbelow = true
|
vim.opt.splitbelow = true
|
||||||
|
|
||||||
-- Sets how neovim will display certain whitespace characters in the editor.
|
|
||||||
-- See `:help 'list'`
|
|
||||||
-- and `:help 'listchars'`
|
|
||||||
vim.opt.list = true
|
|
||||||
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
|
||||||
|
|
||||||
-- Preview substitutions live, as you type!
|
-- Preview substitutions live, as you type!
|
||||||
vim.opt.inccommand = 'split'
|
vim.opt.inccommand = 'split'
|
||||||
|
|
||||||
|
@ -676,38 +670,41 @@ require('lazy').setup({
|
||||||
local servers = {
|
local servers = {
|
||||||
-- clangd = {},
|
-- clangd = {},
|
||||||
gopls = {
|
gopls = {
|
||||||
gofumpt = true,
|
settings = {
|
||||||
codelenses = {
|
gopls = {
|
||||||
gc_details = false,
|
gofumpt = true,
|
||||||
generate = true,
|
codelenses = {
|
||||||
regenerate_cgo = true,
|
gc_details = false,
|
||||||
run_govulncheck = true,
|
generate = true,
|
||||||
test = true,
|
regenerate_cgo = true,
|
||||||
tidy = true,
|
run_govulncheck = true,
|
||||||
upgrade_dependency = true,
|
test = true,
|
||||||
vendor = true,
|
tidy = true,
|
||||||
|
upgrade_dependency = true,
|
||||||
|
vendor = true,
|
||||||
|
},
|
||||||
|
hints = {
|
||||||
|
assignVariableTypes = true,
|
||||||
|
compositeLiteralFields = true,
|
||||||
|
compositeLiteralTypes = true,
|
||||||
|
constantValues = true,
|
||||||
|
functionTypeParameters = true,
|
||||||
|
parameterNames = true,
|
||||||
|
rangeVariableTypes = true,
|
||||||
|
},
|
||||||
|
analyses = {
|
||||||
|
nilness = true,
|
||||||
|
unusedparams = true,
|
||||||
|
unusedwrite = true,
|
||||||
|
useany = true,
|
||||||
|
},
|
||||||
|
usePlaceholders = true,
|
||||||
|
completeUnimported = true,
|
||||||
|
staticcheck = true,
|
||||||
|
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
|
||||||
|
semanticTokens = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
hints = {
|
|
||||||
assignVariableTypes = true,
|
|
||||||
compositeLiteralFields = true,
|
|
||||||
compositeLiteralTypes = true,
|
|
||||||
constantValues = true,
|
|
||||||
functionTypeParameters = true,
|
|
||||||
parameterNames = true,
|
|
||||||
rangeVariableTypes = true,
|
|
||||||
},
|
|
||||||
analyses = {
|
|
||||||
fieldalignment = true,
|
|
||||||
nilness = true,
|
|
||||||
unusedparams = true,
|
|
||||||
unusedwrite = true,
|
|
||||||
useany = true,
|
|
||||||
},
|
|
||||||
usePlaceholders = true,
|
|
||||||
completeUnimported = true,
|
|
||||||
staticcheck = true,
|
|
||||||
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
|
|
||||||
semanticTokens = true,
|
|
||||||
},
|
},
|
||||||
ruby_lsp = {},
|
ruby_lsp = {},
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,9 @@ return {
|
||||||
{
|
{
|
||||||
'zbirenbaum/copilot-cmp',
|
'zbirenbaum/copilot-cmp',
|
||||||
dependencies = 'copilot.lua',
|
dependencies = 'copilot.lua',
|
||||||
opts = {},
|
opts = {
|
||||||
|
copilot_model = 'gpt-4o-copilot', -- Current LSP default is gpt-35-turbo, supports gpt-4o-copilot
|
||||||
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local copilot_cmp = require 'copilot_cmp'
|
local copilot_cmp = require 'copilot_cmp'
|
||||||
copilot_cmp.setup(opts)
|
copilot_cmp.setup(opts)
|
||||||
|
|
Loading…
Reference in New Issue