nvim/after/plugin/autoformat.lua

17 lines
615 B
Lua
Raw Normal View History

2023-08-04 08:09:55 +00:00
require("lsp-format").setup {}
local on_attach = function(client)
2023-08-07 11:59:29 +00:00
require("lsp-format").on_attach(client)
2023-08-04 08:09:55 +00:00
2023-08-07 11:59:29 +00:00
-- ... custom code ...
2023-08-04 08:09:55 +00:00
end
require("lspconfig").bashls.setup { on_attach = on_attach }
require("lspconfig").clangd.setup { on_attach = on_attach }
require("lspconfig").julials.setup { on_attach = on_attach }
require("lspconfig").lua_ls.setup { on_attach = on_attach }
require("lspconfig").ltex.setup { on_attach = on_attach }
require("lspconfig").pylsp.setup { on_attach = on_attach }
require("lspconfig").texlab.setup { on_attach = on_attach }
require("lspconfig").zls.setup { on_attach = on_attach }