no more copilot

This commit is contained in:
iofq 2025-07-05 21:18:10 -05:00
parent d360f0e701
commit 5f5ac17935
No known key found for this signature in database
GPG key ID: ECF3B2DA38BF7183
10 changed files with 78 additions and 141 deletions

32
nvim/lsp/gopls.lua Normal file
View file

@ -0,0 +1,32 @@
return {
settings = {
gopls = {
gofumpt = true,
codelenses = {
gc_details = true,
test = true,
},
analyses = {
unusedvariable = true,
unusedparams = true,
useany = true,
unusedwrite = true,
nilness = true,
shadow = true,
},
hints = {
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
constantValues = true,
functionTypeParameters = true,
rangeVariableTypes = true,
parameterNames = true,
},
usePlaceholders = true,
staticcheck = true,
completeUnimported = true,
semanticTokens = true,
},
},
}

23
nvim/lsp/lua_ls.lua Normal file
View file

@ -0,0 +1,23 @@
return {
on_init = function(client)
local path = client.workspace_folders[1].name
if vim.loop.fs_stat(path .. '/.luarc.json') or vim.loop.fs_stat(path .. '/.luarc.jsonc') then
return
end
client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
runtime = {
version = 'LuaJIT',
},
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME,
},
},
})
end,
settings = {
Lua = {},
},
}