some stuff

This commit is contained in:
elkowar 2021-05-06 19:35:35 +02:00
parent 9c89c99b60
commit 945eddd33e
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,28 +1,27 @@
(module init
{require {a aniseed.core
fennel aniseed.fennel
nvim aniseed.nvim
{require {utils utils
str aniseed.string
kb keybinds
utils utils}
nvim aniseed.nvim
a aniseed.core
fennel aniseed.fennel}
require-macros [macros]})
(macro make-errors-epic [f]
`(xpcall #,f #(a.println (fennel.traceback $1))))
(make-errors-epic (require "plugins.lsp"))
(make-errors-epic (require "keybinds"))
(when (utils.plugin-installed? :telescope.nvim)
(pkg telescope.nvim []
(make-errors-epic (require "plugins.telescope")))
(when (utils.plugin-installed? :galaxyline.nvim)
(pkg galaxyline.nvim []
(make-errors-epic (require "plugins.galaxyline")))
(when (utils.plugin-installed? :nvim-bufferline.lua)
(pkg nvim-bufferline.lua []
(make-errors-epic (require "plugins.bufferline")))
(def- colors utils.colors)
(when (utils.plugin-installed? :conjure)
(pkg conjure []
(set vim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed."))
; Colors ------------------------------------------------------- foldstart
@ -38,7 +37,7 @@
; Treesitter ------------------------------------------------------- foldstart
(pkg :nvim-treesitter [configs (require "nvim-treesitter.configs")]
(pkg nvim-treesitter [configs (require "nvim-treesitter.configs")]
(configs.setup
{:ensure_installed "all"
:highlight {:enable true
@ -67,7 +66,7 @@
; gitsigns.nvim ------------------------------------------------------- foldstart
; https://github.com/lewis6991/gitsigns.nvim
(pkg :gitsigns.nvim [gitsigns (require "gitsigns")]
(pkg gitsigns.nvim [gitsigns (require "gitsigns")]
(gitsigns.setup
{:signs {:add {:text "▍"}
:change {:text "▍"}
@ -86,8 +85,8 @@
; foldend
; :: diffview ------------------------------------------------------------------- foldstart
(pkg :diffview.nvim [diffview (require "diffview")
cb (. (require "diffview.config") :diffview_callback)]
(pkg diffview.nvim [diffview (require "diffview")
cb (. (require "diffview.config") :diffview_callback)]
(diffview.setup
{:diff_binaries false
:file_panel {:width 35

View file

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

View file

@ -10,14 +10,14 @@
(def- colors utils.colors)
(pkg :symbols-outline.nvim [symbols-outline (require "symbols-outline")]
(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]
(pkg :lsp_signature.nvim [lsp_signature (require "lsp_signature")]
(pkg lsp_signature.nvim [lsp_signature (require "lsp_signature")]
(lsp_signature.on_attach))
(if client.resolved_capabilities.document_highlight
@ -71,7 +71,7 @@
; >>>>>
; compe -------------------------------------------------------------------------------- <<<<<
(pkg :nvim-compe [compe (require "compe")]
(pkg nvim-compe [compe (require "compe")]
(compe.setup
{:enabled true
:autocomplete false
@ -96,7 +96,7 @@
; >>>>>
; LSP saga -------------------------------------------------------------------------------- <<<<<
(pkg :lspsaga.nvim [saga (require "lspsaga")]
(pkg lspsaga.nvim [saga (require "lspsaga")]
(saga.init_lsp_saga
{:border_style "single" ; single double round plus
:code_action_prompt {:enable true
@ -142,7 +142,7 @@
; >>>>>
; LSP trouble -------------------------------------------------------------------------------- <<<<<
(pkg :lsp-trouble.nvim [trouble (require "trouble")]
(pkg lsp-trouble.nvim [trouble (require "trouble")]
(trouble.setup
{:icons false
:auto_preview true
@ -170,7 +170,7 @@
; >>>>>
(pkg :rust-tools.nvim [rust-tools (require "rust-tools")]
(pkg rust-tools.nvim [rust-tools (require "rust-tools")]
(rust-tools.setup { :tools { :inlay_hints { :show_parameter_hints false}}}))
(set vim.o.signcolumn "yes")

View file

@ -252,6 +252,7 @@ hi SignifySignAdd cterm=NONE gui=NONE guifg='#8ec07c'
"source $VIM_ROOT/whichkeyConfig.vim
let g:aniseed#env = v:true
"let g:aniseed#env = { "compile": v:false }
"let g:lexima_no_default_rules = v:true
"call lexima#set_default_rules()

View file

@ -98,6 +98,11 @@ require("packer").startup(function(use)
use "honza/vim-snippets"
use "tommcdo/vim-exchange"
use "kien/rainbow_parentheses.vim"
--use {
--"eraserhd/parinfer-rust",
--run = "cargo build --release"
--}
use "bhurlow/vim-parinfer"