|
|
@ -23,6 +23,13 @@ require("mason").setup({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
require("mason-lspconfig").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. |
|
|
|
-- Treesitter config. |
|
|
|
require'nvim-treesitter.configs'.setup { |
|
|
|
require'nvim-treesitter.configs'.setup { |
|
|
|
ensure_installed = { |
|
|
|
ensure_installed = { |
|
|
|