@ -23,6 +23,13 @@ require("mason").setup({
})
require("mason-lspconfig").setup()
-- Auto-format code on save
vim.api.nvim_create_autocmd({"BufWritePre"}, {
callback = function()
vim.lsp.buf.format()
end
-- Treesitter config.
require'nvim-treesitter.configs'.setup {
ensure_installed = {