start with neoformat, not configured correctly yet, added some mason ensure installed

This commit is contained in:
Aram Markarov
2025-12-11 00:07:23 +01:00
parent e1a41d945d
commit 126ee70634
5 changed files with 30 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
local autocmd = vim.api.nvim_create_autocmd
autocmd("BufWritePre", {
callback = function()
local ok = pcall(function()
vim.cmd "undojoin"
end)
vim.cmd "Neoformat"
end,
})
+8 -1
View File
@@ -42,7 +42,14 @@ require("mason-lspconfig").setup({
ensure_installed = { ensure_installed = {
"lua_ls", "lua_ls",
"rust_analyzer", "rust_analyzer",
"gopls", "jdtls",
"prettier",
"yamlls",
"ts_ls",
"tailwindcss",
"html",
"cssls",
"shfmt",
}, },
handlers = { handlers = {
function(server_name) -- default handler (optional) function(server_name) -- default handler (optional)
+1
View File
@@ -0,0 +1 @@
let g:neoformat_verbose = 1
+1 -4
View File
@@ -11,13 +11,10 @@ require'nvim-treesitter.configs'.setup {
disable = {}, disable = {},
}, },
ensure_installed = { ensure_installed = {
"tsx", "jsx",
"toml", "toml",
"fish",
"php",
"json", "json",
"yaml", "yaml",
"swift",
"css", "css",
"html", "html",
"lua" "lua"
+10
View File
@@ -5,6 +5,16 @@ return {
require("actions-preview") require("actions-preview")
end, end,
}, },
{
"sbdchd/neoformat",
init = function()
vim.cmd(
"source"
.. vim.fn.stdpath "config"
.. "/lua/config/neoformat.vim"
)
end,
},
{ {
"rachartier/tiny-inline-diagnostic.nvim", "rachartier/tiny-inline-diagnostic.nvim",
event = "VeryLazy", event = "VeryLazy",