aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins.lua
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-11-12 09:25:07 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-11-12 09:25:07 +0000
commit57dcd8648a80cf632d7295afa1e6e3912a8b2930 (patch)
treecab217d894cc92c454d24d7f45a24d2c94133589 /.config/nvim/lua/plugins.lua
parent0387a327d11da95d273fbd8ecf368cf0b93a3875 (diff)
downloaddotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.tar
dotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.tar.gz
dotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.tar.bz2
dotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.tar.lz
dotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.tar.xz
dotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.tar.zst
dotfiles-57dcd8648a80cf632d7295afa1e6e3912a8b2930.zip
Fix tmux colours and add gitsigns to neovim
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r--.config/nvim/lua/plugins.lua69
1 files changed, 69 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index b2ca11d..29ddc09 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -60,6 +60,7 @@ local PKGS = {
{ url = "https://github.com/sigmaSd/deno-nvim.git" };
{ url = "https://github.com/ray-x/lsp_signature.nvim.git" };
{ url = "https://github.com/Hoffs/omnisharp-extended-lsp.nvim.git" };
+ { url = "https://github.com/lewis6991/gitsigns.nvim.git" };
-- Dev container
{ url = "https://codeberg.org/esensar/nvim-dev-container.git" };
@@ -189,6 +190,74 @@ local function init_plugins()
require("mini.surround").setup({})
+ require("gitsigns").setup {
+ signs = {
+ add = {
+ hl = "GitSignsAdd";
+ text = "│";
+ numhl = "GitSignsAddNr";
+ linehl = "GitSignsAddLn";
+ };
+ change = {
+ hl = "GitSignsChange";
+ text = "│";
+ numhl = "GitSignsChangeNr";
+ linehl = "GitSignsChangeLn";
+ };
+ delete = {
+ hl = "GitSignsDelete";
+ text = "_";
+ numhl = "GitSignsDeleteNr";
+ linehl = "GitSignsDeleteLn";
+ };
+ topdelete = {
+ hl = "GitSignsDelete";
+ text = "‾";
+ numhl = "GitSignsDeleteNr";
+ linehl = "GitSignsDeleteLn";
+ };
+ changedelete = {
+ hl = "GitSignsChange";
+ text = "~";
+ numhl = "GitSignsChangeNr";
+ linehl = "GitSignsChangeLn";
+ };
+ untracked = {
+ hl = "GitSignsAdd";
+ text = "┆";
+ numhl = "GitSignsAddNr";
+ linehl = "GitSignsAddLn";
+ };
+ };
+ signcolumn = true; -- Toggle with `:Gitsigns toggle_signs`
+ numhl = true; -- Toggle with `:Gitsigns toggle_numhl`
+ linehl = false; -- Toggle with `:Gitsigns toggle_linehl`
+ word_diff = false; -- Toggle with `:Gitsigns toggle_word_diff`
+ watch_gitdir = { interval = 1000; follow_files = true };
+ attach_to_untracked = true;
+ current_line_blame = true; -- Toggle with `:Gitsigns toggle_current_line_blame`
+ current_line_blame_opts = {
+ virt_text = true;
+ virt_text_pos = "eol"; -- 'eol' | 'overlay' | 'right_align'
+ delay = 0;
+ ignore_whitespace = false;
+ };
+ current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>";
+ sign_priority = 6;
+ update_debounce = 100;
+ status_formatter = nil; -- Use default
+ max_file_length = 40000; -- Disable if file is longer than this (in lines)
+ preview_config = {
+ -- Options passed to nvim_open_win
+ border = "single";
+ style = "minimal";
+ relative = "cursor";
+ row = 0;
+ col = 1;
+ };
+ yadm = { enable = false };
+ }
+
end
return {