add gitsigns

This commit is contained in:
elkowar 2021-05-01 12:01:13 +02:00
parent cc6754014a
commit bfd8def726
6 changed files with 32 additions and 22 deletions

View file

@ -0,0 +1,3 @@
{
"lastCheck": 1619814354426
}

View file

@ -1,4 +1,4 @@
{
"optOut": false,
"lastUpdateCheck": 1619546337423
"lastUpdateCheck": 1619802461034
}

View file

@ -4,8 +4,9 @@
nvim aniseed.nvim
kb keybinds
utils utils
nvim-treesitter-configs nvim-treesitter.configs}
;gitsigns gitsigns}
nvim-treesitter-configs nvim-treesitter.configs
gitsigns gitsigns}
;nvim-biscuits nvim-biscuits}
require-macros [macros]})
(require "plugins.telescope")
@ -33,26 +34,32 @@
:scope_incremental "gsj"
:scope_decremental "gsk"}}
:rainbow { :enable true
:extended_mode true}
; disabled due to it fucking with gitsigns.nvim
;:rainbow { :enable true
;:extended_mode true}
:context_commentstring { :enable true}})
;(nvim-biscuits.setup {}
;{ :on_events ["InsertLeave" "CursorHoldI"]})
; gitsigns.nvim - inactive due to weird issue with keybinds not being removable <<<<<
; gitsigns.nvim ------------------------------------------------------- <<<<<
; https://github.com/lewis6991/gitsigns.nvim
;(gitsigns.setup
;{ :signs { :add {:text "▍"}
;:change {:text "▍"}
;:delete {:text "▍"}
;:topdelete {:text "▍"}
;:changedelete {:text "▍"}}}
;{ :keymaps { :noremap true :buffer true}
;:current_line_blame false})
(gitsigns.setup
{ :signs { :add {:text "▍"}
:change {:text "▍"}
:delete {:text "▍"}
:topdelete {:text "▍"}
:changedelete {:text "▍"}}
:keymaps { :noremap true
:buffer (do (a.println "TESTTESTTEST")
true)}
:current_line_blame false})
;(utils.highlight "GitSignsAdd" {:bg "NONE" :fg colors.bright_aqua})
;(utils.highlight "GitSignsDelete" {:bg "NONE" :fg colors.neutral_red})
;(utils.highlight "GitSignsChange" {:bg "NONE" :fg colors.bright_blue})
(utils.highlight "GitSignsAdd" {:bg "NONE" :fg colors.bright_aqua})
(utils.highlight "GitSignsDelete" {:bg "NONE" :fg colors.neutral_red})
(utils.highlight "GitSignsChange" {:bg "NONE" :fg colors.bright_blue})
; >>>>>

View file

@ -61,6 +61,7 @@
(init-lsp :jsonls { :commands { :Format [ #(vim.lsp.buf.range_formatting [] [0 0] [(vim.fn.line "$") 0])]}})
(init-lsp :denols { :root_dir (better_root_pattern [".git"] ["package.json"])})
(init-lsp :hls { :settings { :languageServerHaskell { :formattingProvider "stylish-haskell"}}})
(init-lsp :ocamllsp)
(init-lsp :vimls)
(init-lsp :bashls)
(init-lsp :erlangls)
@ -157,12 +158,11 @@
; >>>>>
; Empty template -------------------------------------------------------------------------------- <<<<<
; >>>>>
(rust-tools.setup { :inlay_hints { :show_parameter_hints false}})
(rust-tools.setup { :tools { :inlay_hints { :show_parameter_hints false}}})
(set vim.o.signcolumn "yes")

View file

@ -60,7 +60,7 @@ require("packer").startup(function(use)
}
use "mhinz/vim-signify"
--use "lewis6991/gitsigns.nvim"
use "lewis6991/gitsigns.nvim"
use "tpope/vim-fugitive"
use "preservim/nerdcommenter"

View file

@ -93,7 +93,6 @@ let
#zstyle ':fzf-tab:complete:ls:*' extra-opts --preview=$extract'exa --icons -1 --color=always $realpath'
#zstyle ':fzf-tab:complete:*:*' extra-opts --preview=$extract'if [ -f $realpath ]; then bat -p --color=always $realpath; else exa --icons -1 --color=always $realpath; fi'
'';
in
@ -153,6 +152,7 @@ in
'';
initExtra = ''
eval $(opam env)
export MANPAGER='nvim +Man! +"set nocul" +"set noshowcmd" +"set noruler" +"set noshowmode" +"set laststatus=2" +"set statusline=\ %t"'
export MANPAGER='nvim +Man! +"set nocul" +"set noshowcmd" +"set noruler" +"set noshowmode" +"set laststatus=0"'