From cf801ce05da5e3b5047e607c3b71b3e8d7ab6017 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 26 Oct 2023 00:55:54 -0700 Subject: [PATCH] :wrench: Reconfigure gitblame --- .config/nvim/after/plugin/gitblame.lua | 3 +++ .config/nvim/lua/neovim/set.lua | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 .config/nvim/after/plugin/gitblame.lua diff --git a/.config/nvim/after/plugin/gitblame.lua b/.config/nvim/after/plugin/gitblame.lua new file mode 100644 index 00000000..726ca609 --- /dev/null +++ b/.config/nvim/after/plugin/gitblame.lua @@ -0,0 +1,3 @@ +require("gitblame").setup({ + enabled = false, +}) diff --git a/.config/nvim/lua/neovim/set.lua b/.config/nvim/lua/neovim/set.lua index 8f2d6e67..50dd380e 100644 --- a/.config/nvim/lua/neovim/set.lua +++ b/.config/nvim/lua/neovim/set.lua @@ -51,17 +51,17 @@ vim.opt.splitright = true -- vim.cmd([[autocmd BufWritePre * call TrimWhiteSpace()]]) -- formats on save -vim.cmd([[autocmd BufWritePre * silent! :Neoformat]]) - +-- vim.cmd([[autocmd BufWritePre * silent! :Neoformat]]) +vim.api.nvim_create_autocmd({ "BufWritePre" }, { + pattern = { "*", "silent!" }, + command = ":Neoformat", +}) --Saves vim session on save -- Marks end of line, space, and trailing space characters vim.opt.listchars:append({ eol = "↵", trail = "·", space = "·" }) vim.opt.list = true --- git-blame disabled by default -vim.g.gitblame_enabled = 0 - -- return quotation marks to json files vim.cmd([[autocmd Filetype json let g:indentLine_setConceal = 0]]) @@ -76,9 +76,9 @@ vim.cmd([[set foldmethod=manual]]) -- enable hard/soft wrap -- vim.cmd([[set wrap linebreak textwidth=80]]) -vim.opt.textwidth = 80 -vim.opt.wrap = true -vim.opt.linebreak = true +-- vim.opt.textwidth = 80 +-- vim.opt.wrap = true +-- vim.opt.linebreak = true -- vim.cmd([[au BufRead,BufNewFile *.md setlocal textwidth=80]]) -- max tab characters