Update copilot settings

This commit is contained in:
Karolis Arbaciauskas 2025-03-27 21:14:39 +02:00
parent 255a01317d
commit d602ccad5d
No known key found for this signature in database
2 changed files with 37 additions and 38 deletions

View File

@ -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'
@ -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/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
gopls = {
settings = {
gopls = { gopls = {
gofumpt = true, gofumpt = true,
codelenses = { codelenses = {
@ -697,7 +693,6 @@ require('lazy').setup({
rangeVariableTypes = true, rangeVariableTypes = true,
}, },
analyses = { analyses = {
fieldalignment = true,
nilness = true, nilness = true,
unusedparams = true, unusedparams = true,
unusedwrite = true, unusedwrite = true,
@ -709,6 +704,8 @@ require('lazy').setup({
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' }, directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
semanticTokens = true, semanticTokens = true,
}, },
},
},
ruby_lsp = {}, ruby_lsp = {},
-- pyright = {}, -- pyright = {},

View File

@ -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)