(module init {require {a aniseed.core fennel aniseed.fennel nvim aniseed.nvim str aniseed.string kb keybinds utils utils nvim-treesitter-configs nvim-treesitter.configs gitsigns gitsigns} ;nvim-biscuits nvim-biscuits} require-macros [macros]}) (require "plugins.telescope") (require "plugins.lsp") (require "plugins.galaxyline") (require "plugins.bufferline") (local colors (utils.colors)) ;(set nvim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed.") ; Treesitter ------------------------------------------------------- <<<<< (nvim-treesitter-configs.setup { :ensure_installed "all" :highlight { :enable true :disable ["fennel"]} :indent { :enable true :disable ["lua"]} :incremental_selection { :enable true :keymaps { :init_selection "gss" :node_incremental "gsl" :node_decremental "gsh" :scope_incremental "gsj" :scope_decremental "gsk"}} ; 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 ------------------------------------------------------- <<<<< ; 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 true :update_debounce 100}) (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}) ; >>>>> ; " :: and _ as space ------------------------------------------------------------------- <<<<< (var remapped-space nil) (fn _G.RebindShit [newKey] (set remapped-space {:old (vim.fn.maparg : :i) :cur newKey}) (utils.keymap :i : newKey {:buffer true})) (fn _G.UnbindSpaceStuff [] (if (and remapped-space (~= remapped-space {})) (do (utils.del-keymap :i : true) (if (~= remapped-space.old "") (utils.keymap :i : remapped-space.old {:buffer true})) (set remapped-space nil)))) (nvim.command "autocmd! InsertLeave * :call v:lua.UnbindSpaceStuff()") (utils.keymap :n "j" ":call v:lua.RebindShit('_')") (utils.keymap :n "k" ":call v:lua.RebindShit('::')") (utils.keymap :i "j" ":call v:lua.RebindShit('_')") (utils.keymap :i "k" ":call v:lua.RebindShit('::')") (utils.keymap :n "ö" "a") ; >>>>> ; vim:foldmarker=<<<<<,>>>>>