mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-03-22 01:39:54 +01:00
start with neoformat, not configured correctly yet, added some mason ensure installed
This commit is contained in:
@@ -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,
|
||||
})
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
let g:neoformat_verbose = 1
|
||||
@@ -11,13 +11,10 @@ require'nvim-treesitter.configs'.setup {
|
||||
disable = {},
|
||||
},
|
||||
ensure_installed = {
|
||||
"tsx",
|
||||
"jsx",
|
||||
"toml",
|
||||
"fish",
|
||||
"php",
|
||||
"json",
|
||||
"yaml",
|
||||
"swift",
|
||||
"css",
|
||||
"html",
|
||||
"lua"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user