Updating neovim configuration

This commit is contained in:
araison 2024-01-14 16:45:05 +01:00
parent f8e72a4b87
commit b5f320f092
2 changed files with 11 additions and 1 deletions

View File

@ -9,7 +9,7 @@ return {
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = { "lua_ls", "texlab", "clangd", "pylsp" },
ensure_installed = { "lua_ls", "texlab", "clangd", "pylsp", "html", "tailwindcss" },
})
end,
},
@ -30,6 +30,12 @@ return {
lspconfig.pylsp.setup({
capabilities = capabilities,
})
lspconfig.html.setup({
capabilities = capabilities,
})
lspconfig.tailwindcss.setup({
capabilities = capabilities,
})
end,
},
}

View File

@ -7,6 +7,10 @@ return {
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.bibclean,
null_ls.builtins.formatting.biome,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.djlint,
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})