more cleanup

This commit is contained in:
elkowar 2021-05-08 20:51:05 +02:00
parent a86abb6e56
commit 7256f19a47
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
10 changed files with 144 additions and 179 deletions

View file

@ -1,10 +1,9 @@
(module init (module init
{require {utils utils {autoload {utils utils
str aniseed.string nvim aniseed.nvim
nvim aniseed.nvim a aniseed.core
a aniseed.core fennel aniseed.fennel
fennel aniseed.fennel colors colors}
colors colors}
require-macros [macros]}) require-macros [macros]})
(macro make-errors-epic [f] (macro make-errors-epic [f]
@ -28,36 +27,10 @@
; foldend ; foldend
; Treesitter ------------------------------------------------------- foldstart
(pkg nvim-treesitter [configs (require "nvim-treesitter.configs")]
(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 {} ;(nvim-biscuits.setup {}
;{ :on_events ["InsertLeave" "CursorHoldI"]}) ;{ :on_events ["InsertLeave" "CursorHoldI"]})
; foldend
; :: and _ as space ------------------------------------------------------------------- foldstart ; :: and _ as space ------------------------------------------------------------------- foldstart
(var remapped-space nil) (var remapped-space nil)
(fn _G.RebindShit [newKey] (fn _G.RebindShit [newKey]

View file

@ -26,9 +26,8 @@
:pkg :pkg
(fn [name mappings ...] (fn [name mappings ...]
;(if (~= nil (. packer_plugins `,(tostring name))) `(if (~= nil (. packer_plugins `,(tostring name)))
(if true (let ,mappings ,...)
`(let ,mappings ,...)
(print (.. "plugin disabled " `,(tostring name))))) (print (.. "plugin disabled " `,(tostring name)))))
:each-pair :each-pair

View file

@ -5,7 +5,7 @@
:nvim-telescope/telescope.nvim {:mod "plugins.telescope" :nvim-telescope/telescope.nvim {:mod "plugins.telescope"
:requires [:nvim-lua/popup.nvim :nvim-lua/plenary.nvim]} :requires [:nvim-lua/popup.nvim :nvim-lua/plenary.nvim]}
:p00f/nvim-ts-rainbow {} :p00f/nvim-ts-rainbow {:mod "plugins.treesitter"}
:romgrk/nvim-treesitter-context {} :romgrk/nvim-treesitter-context {}
:JoosepAlviste/nvim-ts-context-commentstring {} :JoosepAlviste/nvim-ts-context-commentstring {}
:nvim-treesitter/nvim-treesitter {:run ":TSUpdate"} :nvim-treesitter/nvim-treesitter {:run ":TSUpdate"}
@ -56,11 +56,11 @@
; code-related ----------------------------------------- <<< ; code-related ----------------------------------------- <<<
:folke/lsp-trouble.nvim {} :folke/lsp-trouble.nvim {:mod "plugins.trouble"}
:simrat39/symbols-outline.nvim {} :simrat39/symbols-outline.nvim {:mod "plugins.symbols-outline"}
:neovim/nvim-lspconfig {} :neovim/nvim-lspconfig {}
:hrsh7th/nvim-compe {} :hrsh7th/nvim-compe {:mod "plugins.compe"}
:glepnir/lspsaga.nvim {} :glepnir/lspsaga.nvim {:mod "plugins.lspsaga"}
:Olical/conjure {} :Olical/conjure {}
@ -74,7 +74,7 @@
:editorconfig/editorconfig-vim {} :editorconfig/editorconfig-vim {}
:honza/vim-snippets {} :honza/vim-snippets {}
:tommcdo/vim-exchange {} :tommcdo/vim-exchange {}
:kien/rainbow_parentheses.vim {} ;:frazrepo/vim-rainbow {}
:bhurlow/vim-parinfer {:ft ["fennel" "carp" "lisp" "elisp"]} :bhurlow/vim-parinfer {:ft ["fennel" "carp" "lisp" "elisp"]}

View file

@ -0,0 +1,24 @@
(module plugins.compe
{autoload {compe compe}})
(compe.setup
{:enabled true
:autocomplete false
:debug false
:min_length 1
:preselect "enable"
:throttle_time 80
:source_timeout 200
:incomplete_delay 400
:max_abbr_width 100
:max_kind_width 100
:max_menu_width 100
:documentation true
:source {:path true
:buffer true
:calc true
:nvim_lsp true
:nvim_lua true
:vsnip false
:conjure true}})

View file

@ -1,23 +1,14 @@
(module plugins.lsp (module plugins.lsp
{require {a aniseed.core {require {a aniseed.core
fennel aniseed.fennel
nvim aniseed.nvim
lsp lspconfig lsp lspconfig
lsp-configs lspconfig.configs lsp-configs lspconfig.configs
utils utils utils utils}
colors colors}
require-macros [macros]}) require-macros [macros]})
(pkg symbols-outline.nvim [symbols-outline (require "symbols-outline")]
(symbols-outline.setup { :highlight_hovered_item true :show_guides true}))
; LSP config -------------------------------------------------------------------------------- <<<<<
(fn on_attach [client bufnr] (fn on_attach [client bufnr]
(pkg lsp_signature.nvim [lsp_signature (require "lsp_signature")] (pkg lsp-signature.nvim [lsp_signature (require "lsp_signature")]
(lsp_signature.on_attach)) (lsp_signature.on_attach))
(if client.resolved_capabilities.document_highlight (if client.resolved_capabilities.document_highlight
@ -48,8 +39,6 @@
((. lsp lsp-name :setup) merged-opts))) ((. lsp lsp-name :setup) merged-opts)))
(let [capabilities (vim.lsp.protocol.make_client_capabilities)] (let [capabilities (vim.lsp.protocol.make_client_capabilities)]
(set capabilities.textDocument.completion.completionItem.snippetSupport true) (set capabilities.textDocument.completion.completionItem.snippetSupport true)
(set capabilities.textDocument.completion.completionItem.resolveSupport (set capabilities.textDocument.completion.completionItem.resolveSupport
@ -75,107 +64,6 @@
;(lsp.vimls.setup { :on_attach on_attach}) ;(lsp.vimls.setup { :on_attach on_attach})
; >>>>>
; compe -------------------------------------------------------------------------------- <<<<<
(pkg nvim-compe [compe (require "compe")]
(compe.setup
{:enabled true
:autocomplete false
:debug false
:min_length 1
:preselect "enable"
:throttle_time 80
:source_timeout 200
:incomplete_delay 400
:max_abbr_width 100
:max_kind_width 100
:max_menu_width 100
:documentation true
:source {:path true
:buffer true
:calc true
:nvim_lsp true
:nvim_lua true
:vsnip false
:conjure true}}))
; >>>>>
; LSP saga -------------------------------------------------------------------------------- <<<<<
(pkg lspsaga.nvim [saga (require "lspsaga")]
(saga.init_lsp_saga
{:border_style "single" ; single double round plus
:code_action_prompt {:enable true
:sign true
:virtual_text false}
:code_action_keys {:quit "<esc>" :exec "<CR>"}
:rename_action_keys {:quit "<esc>" :exec "<CR>"}
:finder_action_keys {:quit "<esc>"
:open "<CR>"
:vsplit "v"
:split "b"
:scroll_up "<C-u>"
:scroll_down "<C-d>"}})
(utils.highlight ["LspFloatWinBorder"
"LspSagaHoverBorder"
"LspSagaRenameBorder"
"LspSagaSignatureHelpBorder"
"LspSagaCodeActionBorder"
"LspSagaDefPreviewBorder"
"LspSagaDiagnosticBorder"]
{:bg colors.dark0_hard :fg colors.dark0_hard})
(utils.highlight ["LspSagaDiagnosticTruncateLine"
"LspSagaDocTruncateLine"
"LspSagaShTruncateLine"]
{:bg "NONE" :fg colors.dark0})
(utils.highlight ["TargetWord"
"LspSagaCodeActionTitle"
"LspSagaBorderTitle"
"LspSagaCodeActionContent"
"LspSagaFinderSelection"
"LspSagaDiagnosticHeader"]
{:fg colors.bright_aqua}))
(utils.highlight "LspFloatWinNormal" {:bg colors.dark0_hard})
(utils.highlight "LspFloatWinBorder" {:bg colors.dark0_hard
:fg colors.dark0_hard})
(utils.highlight "TargetWord" {:fg colors.bright_aqua})
; >>>>>
; LSP trouble -------------------------------------------------------------------------------- <<<<<
(pkg lsp-trouble.nvim [trouble (require "trouble")]
(trouble.setup
{:icons false
:auto_preview true
:auto_close true
:auto_open false
:action_keys
{:jump "o"
:jump_close "<CR>"
:close "<esc>"
:cancel "q"
:hover ["a" "K"]}})
(utils.highlight "LspTroubleFoldIcon" {:bg "NONE" :fg colors.bright_orange})
(utils.highlight "LspTroubleCount" {:bg "NONE" :fg colors.bright_green})
(utils.highlight "LspTroubleText" {:bg "NONE" :fg colors.light0})
(utils.highlight "LspTroubleSignError" {:bg "NONE" :fg colors.bright_red})
(utils.highlight "LspTroubleSignWarning" {:bg "NONE" :fg colors.bright_yellow})
(utils.highlight "LspTroubleSignInformation" {:bg "NONE" :fg colors.bright_aqua})
(utils.highlight "LspTroubleSignHint" {:bg "NONE" :fg colors.bright_blue}))
; >>>>>
; Empty template -------------------------------------------------------------------------------- <<<<<
; >>>>>
(set vim.o.signcolumn "yes") (set vim.o.signcolumn "yes")

View file

@ -0,0 +1,49 @@
(module plugins.lspsaga
{autoload {utils utils
colors colors
saga lspsaga}})
(saga.init_lsp_saga
{:border_style "single" ; single double round plus
:code_action_prompt {:enable true
:sign true
:virtual_text false}
:code_action_keys {:quit "<esc>" :exec "<CR>"}
:rename_action_keys {:quit "<esc>" :exec "<CR>"}
:finder_action_keys {:quit "<esc>"
:open "<CR>"
:vsplit "v"
:split "b"
:scroll_up "<C-u>"
:scroll_down "<C-d>"}})
(utils.highlight ["LspFloatWinBorder"
"LspSagaHoverBorder"
"LspSagaRenameBorder"
"LspSagaSignatureHelpBorder"
"LspSagaCodeActionBorder"
"LspSagaDefPreviewBorder"
"LspSagaDiagnosticBorder"]
{:bg colors.dark0_hard :fg colors.dark0_hard})
(utils.highlight ["LspSagaDiagnosticTruncateLine"
"LspSagaDocTruncateLine"
"LspSagaShTruncateLine"]
{:bg "NONE" :fg colors.dark0})
(utils.highlight ["TargetWord"
"LspSagaCodeActionTitle"
"LspSagaBorderTitle"
"LspSagaCodeActionContent"
"LspSagaFinderSelection"
"LspSagaDiagnosticHeader"]
{:fg colors.bright_aqua})
(utils.highlight "LspFloatWinNormal" {:bg colors.dark0_hard})
(utils.highlight "LspFloatWinBorder" {:bg colors.dark0_hard
:fg colors.dark0_hard})
(utils.highlight "TargetWord" {:fg colors.bright_aqua})

View file

@ -0,0 +1,4 @@
(module plugins.symbols-outline
{require {symbols-outline symbols-outline}})
(symbols-outline.setup {:highlight_hovered_item true :show_guides true})

View file

@ -0,0 +1,26 @@
(module plugins.treesitter
{autoload {a aniseed.core}
require {configs nvim-treesitter.configs}
require-macros [macros]})
(configs.setup
{:ensure_installed "all"
:highlight {:enable true
:disable ["fennel"]}
:incremental_selection {:enable true
:keymaps {:init_selection "gss"
:node_incremental "gsl"
:node_decremental "gsh"
:scope_incremental "gsj"
:scope_decremental "gsk"}}
; Might fuck with gitsigns
:rainbow {:enable true
:extended_mode true}
:context_commentstring {:enable true}})
;:indent {:enable true}
;:disable ["lua"]

View file

@ -0,0 +1,25 @@
(module plugins.trouble
{autoload {utils utils
colors colors}
require {trouble trouble}})
(trouble.setup
{:icons false
:auto_preview true
:auto_close true
:auto_open false
:action_keys
{:jump "o"
:jump_close "<CR>"
:close "<esc>"
:cancel "q"
:hover ["a" "K"]}})
(utils.highlight "LspTroubleFoldIcon" {:bg "NONE" :fg colors.bright_orange})
(utils.highlight "LspTroubleCount" {:bg "NONE" :fg colors.bright_green})
(utils.highlight "LspTroubleText" {:bg "NONE" :fg colors.light0})
(utils.highlight "LspTroubleSignError" {:bg "NONE" :fg colors.bright_red})
(utils.highlight "LspTroubleSignWarning" {:bg "NONE" :fg colors.bright_yellow})
(utils.highlight "LspTroubleSignInformation" {:bg "NONE" :fg colors.bright_aqua})
(utils.highlight "LspTroubleSignHint" {:bg "NONE" :fg colors.bright_blue})

View file

@ -241,29 +241,6 @@ let g:user_emmet_settings = { 'javascript.jsx' : { 'extends' : 'jsx' }, 'typescr
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
let g:qs_lazy_highlight = 1 let g:qs_lazy_highlight = 1
" au VimEnter * RainbowParenthesesToggle
" au Syntax * RainbowParenthesesLoadRound
" au Syntax * RainbowParenthesesLoadSquare
" au Syntax * RainbowParenthesesLoadBraces
"map <Leader>f <Plug>(easymotion-bd-f)
"map <Leader>s <Plug>(easymotion-overwin-f2)
"let g:EasyMotion_smartcase = 1
let g:signify_sign_add = '▍'
let g:signify_sign_delete = '▍'
let g:signify_sign_delete_first_line = '▍'
let g:signify_sign_change = '▍'
"let g:signify_sign_show_text = 0
hi SignifySignDelete cterm=NONE gui=NONE guifg='#fb4934'
hi SignifySignChange cterm=NONE gui=NONE guifg='#83a598'
hi SignifySignAdd cterm=NONE gui=NONE guifg='#8ec07c'
" }}} " }}}
" }}} " }}}