mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-01 00:47:45 +02:00
nvim: git blame in statusbar added
This commit is contained in:
parent
39e4c0c40e
commit
f7da9b553d
@ -31,8 +31,17 @@ return require("lazy").setup({
|
|||||||
-- statusline
|
-- statusline
|
||||||
{
|
{
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons', },
|
dependencies = {
|
||||||
opts = {
|
'nvim-tree/nvim-web-devicons',
|
||||||
|
{
|
||||||
|
'f-person/git-blame.nvim',
|
||||||
|
config = function()
|
||||||
|
vim.g.gitblame_display_virtual_text = 0
|
||||||
|
end
|
||||||
|
}
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('lualine').setup({
|
||||||
options = {
|
options = {
|
||||||
symbols = {
|
symbols = {
|
||||||
error = Error_sign,
|
error = Error_sign,
|
||||||
@ -43,8 +52,14 @@ return require("lazy").setup({
|
|||||||
theme = 'tccs',
|
theme = 'tccs',
|
||||||
component_separators = { left = '', right = '' },
|
component_separators = { left = '', right = '' },
|
||||||
section_separators = { left = '', right = '' }
|
section_separators = { left = '', right = '' }
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_c = {
|
||||||
|
{ require('gitblame').get_current_blame_text, cond = require('gitblame').is_blame_text_available }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
-- show function signature while typing
|
-- show function signature while typing
|
||||||
@ -394,7 +409,8 @@ return require("lazy").setup({
|
|||||||
vim.g.knap_settings = {
|
vim.g.knap_settings = {
|
||||||
texoutputext = "pdf",
|
texoutputext = "pdf",
|
||||||
textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",
|
textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",
|
||||||
textopdfviewerlaunch = "zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' %outputfile%",
|
textopdfviewerlaunch =
|
||||||
|
"zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' %outputfile%",
|
||||||
textopdfviewerrefresh = "none",
|
textopdfviewerrefresh = "none",
|
||||||
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%"
|
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user