Update copilot settings
This commit is contained in:
parent
255a01317d
commit
d602ccad5d
11
init.lua
11
init.lua
|
@ -141,12 +141,6 @@ vim.opt.timeoutlen = 300
|
|||
vim.opt.splitright = 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!
|
||||
vim.opt.inccommand = 'split'
|
||||
|
||||
|
@ -675,6 +669,8 @@ require('lazy').setup({
|
|||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
-- clangd = {},
|
||||
gopls = {
|
||||
settings = {
|
||||
gopls = {
|
||||
gofumpt = true,
|
||||
codelenses = {
|
||||
|
@ -697,7 +693,6 @@ require('lazy').setup({
|
|||
rangeVariableTypes = true,
|
||||
},
|
||||
analyses = {
|
||||
fieldalignment = true,
|
||||
nilness = true,
|
||||
unusedparams = true,
|
||||
unusedwrite = true,
|
||||
|
@ -709,6 +704,8 @@ require('lazy').setup({
|
|||
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
|
||||
semanticTokens = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
ruby_lsp = {},
|
||||
|
||||
-- pyright = {},
|
||||
|
|
|
@ -14,7 +14,9 @@ return {
|
|||
{
|
||||
'zbirenbaum/copilot-cmp',
|
||||
dependencies = 'copilot.lua',
|
||||
opts = {},
|
||||
opts = {
|
||||
copilot_model = 'gpt-4o-copilot', -- Current LSP default is gpt-35-turbo, supports gpt-4o-copilot
|
||||
},
|
||||
config = function(_, opts)
|
||||
local copilot_cmp = require 'copilot_cmp'
|
||||
copilot_cmp.setup(opts)
|
||||
|
|
Loading…
Reference in New Issue