Minor fixes

This commit is contained in:
Kristofers Solo
2022-11-27 23:22:11 +02:00
parent e0f8c76dd4
commit fb9f1ab0c3
5 changed files with 81 additions and 58 deletions

View File

@@ -145,9 +145,14 @@ for _, server in pairs(servers) do
goto continue
end
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.offsetEncoding = { "utf-16" }
if server == "clangd" then
require("clangd_extensions").setup({
server = {
capabilities = capabilities,
-- options to pass to nvim-lspconfig
-- i.e. the arguments to require("lspconfig").clangd.setup({})
},

View File

@@ -19,7 +19,7 @@ null_ls.setup({
sources = {
formatting.prettier.with({
extra_filetypes = { "toml" },
extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" },
extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote", "--no-bracket-spacing" },
}),
formatting.autopep8,
formatting.stylua,
@@ -29,7 +29,7 @@ null_ls.setup({
diagnostics.cpplint,
diagnostics.luacheck,
diagnostics.pylint,
-- diagnostics.mypy,
diagnostics.mypy,
diagnostics.zsh,
},
})