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 = {
|
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)
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
let g:neoformat_verbose = 1
|
||||||
@@ -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"
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user