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 = {
"lua_ls",
"rust_analyzer",
"gopls",
"jdtls",
"prettier",
"yamlls",
"ts_ls",
"tailwindcss",
"html",
"cssls",
"shfmt",
},
handlers = {
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 = {},
},
ensure_installed = {
"tsx",
"jsx",
"toml",
"fish",
"php",
"json",
"yaml",
"swift",
"css",
"html",
"lua"
+10
View File
@@ -5,6 +5,16 @@ return {
require("actions-preview")
end,
},
{
"sbdchd/neoformat",
init = function()
vim.cmd(
"source"
.. vim.fn.stdpath "config"
.. "/lua/config/neoformat.vim"
)
end,
},
{
"rachartier/tiny-inline-diagnostic.nvim",
event = "VeryLazy",