🔧 Reconfigure gitblame
This commit is contained in:
parent
9518d1e103
commit
cf801ce05d
2 changed files with 11 additions and 8 deletions
3
.config/nvim/after/plugin/gitblame.lua
Normal file
3
.config/nvim/after/plugin/gitblame.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
require("gitblame").setup({
|
||||||
|
enabled = false,
|
||||||
|
})
|
||||||
|
|
@ -51,17 +51,17 @@ vim.opt.splitright = true
|
||||||
-- vim.cmd([[autocmd BufWritePre * call TrimWhiteSpace()]])
|
-- vim.cmd([[autocmd BufWritePre * call TrimWhiteSpace()]])
|
||||||
|
|
||||||
-- formats on save
|
-- 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
|
--Saves vim session on save
|
||||||
|
|
||||||
-- Marks end of line, space, and trailing space characters
|
-- Marks end of line, space, and trailing space characters
|
||||||
vim.opt.listchars:append({ eol = "↵", trail = "·", space = "·" })
|
vim.opt.listchars:append({ eol = "↵", trail = "·", space = "·" })
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
|
|
||||||
-- git-blame disabled by default
|
|
||||||
vim.g.gitblame_enabled = 0
|
|
||||||
|
|
||||||
-- return quotation marks to json files
|
-- return quotation marks to json files
|
||||||
vim.cmd([[autocmd Filetype json let g:indentLine_setConceal = 0]])
|
vim.cmd([[autocmd Filetype json let g:indentLine_setConceal = 0]])
|
||||||
|
|
||||||
|
|
@ -76,9 +76,9 @@ vim.cmd([[set foldmethod=manual]])
|
||||||
|
|
||||||
-- enable hard/soft wrap
|
-- enable hard/soft wrap
|
||||||
-- vim.cmd([[set wrap linebreak textwidth=80]])
|
-- vim.cmd([[set wrap linebreak textwidth=80]])
|
||||||
vim.opt.textwidth = 80
|
-- vim.opt.textwidth = 80
|
||||||
vim.opt.wrap = true
|
-- vim.opt.wrap = true
|
||||||
vim.opt.linebreak = true
|
-- vim.opt.linebreak = true
|
||||||
-- vim.cmd([[au BufRead,BufNewFile *.md setlocal textwidth=80]])
|
-- vim.cmd([[au BufRead,BufNewFile *.md setlocal textwidth=80]])
|
||||||
|
|
||||||
-- max tab characters
|
-- max tab characters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue