style(nvim): lua formatting

This commit is contained in:
Rob Watson 2024-11-11 08:56:28 +01:00
parent e41673a9ca
commit cffcfca318
2 changed files with 208 additions and 202 deletions

View File

@ -1,5 +1,7 @@
local nvim_lsp = require("lspconfig") local nvim_lsp = require("lspconfig")
vim.lsp.set_log_level("debug")
local on_attach = function(client, bufnr) local on_attach = function(client, bufnr)
-- TODO: use vim.api.nvim_create_autocmd -- TODO: use vim.api.nvim_create_autocmd
vim.api.nvim_exec2([[autocmd User LspDiagnosticsChanged call lightline#update()]], { output = false }) vim.api.nvim_exec2([[autocmd User LspDiagnosticsChanged call lightline#update()]], { output = false })
@ -66,19 +68,23 @@ nvim_lsp.gopls.setup({
unusedresult = true, unusedresult = true,
nilness = true, nilness = true,
}, },
buildFlags = { "-tags=acceptance" }, buildFlags = { "-tags=acceptance,basketapitest,graphqlapitest" }
}, },
}, },
init_options = { init_options = {
usePlaceholders = true, usePlaceholders = true,
}, },
capabilities = vim.tbl_extend("error", capabilities, { capabilities = vim.tbl_extend(
"error",
capabilities,
{
workspace = { workspace = {
didChangeWatchedFiles = { didChangeWatchedFiles = {
dynamicRegistration = true, dynamicRegistration = true
}, }
}, }
}), }
),
on_attach = on_attach, on_attach = on_attach,
}) })