style(nvim): lua formatting
This commit is contained in:
parent
e41673a9ca
commit
cffcfca318
|
@ -1,5 +1,7 @@
|
|||
local nvim_lsp = require("lspconfig")
|
||||
|
||||
vim.lsp.set_log_level("debug")
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
-- TODO: use vim.api.nvim_create_autocmd
|
||||
vim.api.nvim_exec2([[autocmd User LspDiagnosticsChanged call lightline#update()]], { output = false })
|
||||
|
@ -66,19 +68,23 @@ nvim_lsp.gopls.setup({
|
|||
unusedresult = true,
|
||||
nilness = true,
|
||||
},
|
||||
buildFlags = { "-tags=acceptance" },
|
||||
buildFlags = { "-tags=acceptance,basketapitest,graphqlapitest" }
|
||||
},
|
||||
},
|
||||
init_options = {
|
||||
usePlaceholders = true,
|
||||
},
|
||||
capabilities = vim.tbl_extend("error", capabilities, {
|
||||
capabilities = vim.tbl_extend(
|
||||
"error",
|
||||
capabilities,
|
||||
{
|
||||
workspace = {
|
||||
didChangeWatchedFiles = {
|
||||
dynamicRegistration = true,
|
||||
},
|
||||
},
|
||||
}),
|
||||
dynamicRegistration = true
|
||||
}
|
||||
}
|
||||
}
|
||||
),
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue