From eca140c8a12198c45b9abaefa8aa186686957ab1 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 2 Sep 2024 11:25:37 +0200 Subject: feat: Sync --- init.lua | 1 + lua/gabrielgio/lazy.lua | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/init.lua b/init.lua index 524e006..39fe585 100644 --- a/init.lua +++ b/init.lua @@ -24,6 +24,7 @@ local pkgs = { "nvim-telescope/telescope.nvim", -- telescope "nvim-telescope/telescope-file-browser.nvim", -- telescope file browser "TimUntersberger/neogit", -- magit + "f-person/git-blame.nvim", -- more git info "echasnovski/mini.nvim", -- provides many things "mhartington/formatter.nvim", -- provider formatter "mfussenegger/nvim-lint", -- general linter diff --git a/lua/gabrielgio/lazy.lua b/lua/gabrielgio/lazy.lua index 2179cb8..42ab567 100644 --- a/lua/gabrielgio/lazy.lua +++ b/lua/gabrielgio/lazy.lua @@ -1,35 +1,35 @@ -- this file is an amalgamation of configurations that don't have its own -- config file and will be lazily loaded +require('gitblame').setup() require('neogit').setup() require('formatter').setup() require("mason").setup() require("mason-lspconfig").setup { ensure_installed = { - "gopls", - "zls", - "lua_ls", - "rust_analyzer", --- "clangd", not working on alpine "cssls", - "html", "emmet_ls", + "gopls", + "html", + "lua_ls", "pylsp", - "zls", - "tsserver" + "rust_analyzer", + "tsserver", + "zls" +-- "clangd" not working on alpine }, } local lint = require('lint') lint.linters_by_ft = { - markdown = {'vale'}, - go = {"golangcilint"}, - lua = {"luacheck"}, + go = {"golangcilint"}, + lua = {"luacheck"}, + javascript = {"prettier"}, } vim.api.nvim_create_autocmd({ "BufWritePost" }, { - callback = function() - lint.try_lint() - end, + callback = function() + lint.try_lint() + end, }) -- cgit v1.2.3