stuff kinda works,... weirdly

This commit is contained in:
elkowar 2021-05-18 13:47:07 +02:00
parent bdeb04af86
commit bcdb805f70
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
5 changed files with 28 additions and 23 deletions

View file

@ -1,10 +1,9 @@
(module init
{autoload {utils utils
{require {utils utils
nvim aniseed.nvim
a aniseed.core
str aniseed.string
colors colors
gehzu nvim-gehzu}
colors colors}
require-macros [macros]})
(macro make-errors-epic [f]
@ -38,7 +37,6 @@
(se showmode false)
(se undodir (.. vim.env.HOME "/.vim/undo-dir"))
(se undofile true)
(set vim.bo.undofile true)
(se shortmess (.. vim.o.shortmess "c")) ; Don't give completion messages like 'match 1 of 2' or 'The only match'
(se hidden true)
(se encoding "utf-8")

View file

@ -94,6 +94,7 @@
(match scope
:global `(tset vim.o ,str-name ,value)
:win `(tset vim.wo ,str-name ,value)
:buf `(tset vim.bo ,str-name ,value)
:buf `(do (tset vim.bo ,str-name ,value)
(tset vim.o ,str-name ,value))
_ (print (.. "option " str-name " has unhandled scope " scope)))
(print (.. "Unknown vim-option: " str-name)))))}

View file

@ -5,12 +5,14 @@
(packer-use
"/home/leon/coding/projects/nvim-gehzu" {}
:elkowar/kmonad.vim {}
:lifepillar/vim-gruvbox8 {:opt false
:config #(do (set vim.g.gruvbox_italics 0)
(set vim.g.gruvbox_italicise_strings 0)
(set vim.g.gruvbox_filetype_hi_groups 1)
(set vim.g.gruvbox_plugins_hi_groups 1)
(set vim.g.gruvbox_plugin_hi_groups 1)
(vim.cmd "colorscheme gruvbox8"))}
;:gruvbox-community/gruvbox {:opt false
;:config #(vim.cmd "colorscheme gruvbox")}
@ -38,7 +40,7 @@
:folke/which-key.nvim {}
; json query stuff
:gennaro-tedesco/nvim-jqx {:ft ["json"]}
;:gennaro-tedesco/nvim-jqx {:ft ["json"]}
:Olical/aniseed {:branch "develop"}; :tag "v3.16.0"}
@ -64,7 +66,8 @@
:junegunn/goyo.vim {:cmd "Goyo"}
:lewis6991/gitsigns.nvim {:mod "plugins.gitsigns"}
:lewis6991/gitsigns.nvim {:after ["vim-gruvbox8"]
:mod "plugins.gitsigns"}
:tpope/vim-fugitive {}
@ -101,8 +104,7 @@
:mod "plugins.compe"}
:glepnir/lspsaga.nvim {:mod "plugins.lspsaga"
:event [:BufEnter]}
:glepnir/lspsaga.nvim {:mod "plugins.lspsaga"}
:Olical/conjure {}

View file

@ -1,23 +1,27 @@
(module plugins.gitsigns
{autoload {utils utils
colors colors
gitsigns gitsigns}})
{require {utils utils
colors colors
gitsigns gitsigns}})
; https://github.com/lewis6991/gitsigns.nvim
(gitsigns.setup
{:signs {:add {:text "▍"}
:change {:text "▍"}
:delete {:text "▍"}
:topdelete {:text "▍"}
{:signs {:add {:text "▍"}
:change {:text "▍"}
:delete {:text "▍"}
:topdelete {:text "▍"}
:changedelete {:text "▍"}}
:keymaps {:noremap true
:buffer true}
:current_line_blame false
: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})
(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})
;(print "This is right before setting and then printing the highlight group")
;(vim.cmd "highlight GitSignsAdd guibg='NONE' guifg='#ff2200'")
;(vim.cmd "highlight GitSignsAdd")
; this no work, but https://github.com/lewis6991/gitsigns.nvim/blob/d89f88384567afc7a72b597e130008126fdb97f7/teal/gitsigns/highlight.tl#L19
; REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

View file

@ -1,7 +1,7 @@
(module utils
{autoload {a aniseed.core
nvim aniseed.nvim
str aniseed.string}
{require {a aniseed.core
nvim aniseed.nvim
str aniseed.string}
require-macros [macros]})
(defn plugin-installed? [name]