mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
some stuff
This commit is contained in:
parent
9c89c99b60
commit
945eddd33e
5 changed files with 28 additions and 23 deletions
|
@ -1,28 +1,27 @@
|
||||||
(module init
|
(module init
|
||||||
{require {a aniseed.core
|
{require {utils utils
|
||||||
fennel aniseed.fennel
|
|
||||||
nvim aniseed.nvim
|
|
||||||
str aniseed.string
|
str aniseed.string
|
||||||
kb keybinds
|
nvim aniseed.nvim
|
||||||
utils utils}
|
a aniseed.core
|
||||||
|
fennel aniseed.fennel}
|
||||||
require-macros [macros]})
|
require-macros [macros]})
|
||||||
|
|
||||||
(macro make-errors-epic [f]
|
(macro make-errors-epic [f]
|
||||||
`(xpcall #,f #(a.println (fennel.traceback $1))))
|
`(xpcall #,f #(a.println (fennel.traceback $1))))
|
||||||
|
|
||||||
(make-errors-epic (require "plugins.lsp"))
|
(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")))
|
(make-errors-epic (require "plugins.telescope")))
|
||||||
(when (utils.plugin-installed? :galaxyline.nvim)
|
(pkg galaxyline.nvim []
|
||||||
(make-errors-epic (require "plugins.galaxyline")))
|
(make-errors-epic (require "plugins.galaxyline")))
|
||||||
(when (utils.plugin-installed? :nvim-bufferline.lua)
|
(pkg nvim-bufferline.lua []
|
||||||
(make-errors-epic (require "plugins.bufferline")))
|
(make-errors-epic (require "plugins.bufferline")))
|
||||||
|
|
||||||
|
|
||||||
(def- colors utils.colors)
|
(def- colors utils.colors)
|
||||||
|
|
||||||
(when (utils.plugin-installed? :conjure)
|
(pkg conjure []
|
||||||
(set vim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed."))
|
(set vim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed."))
|
||||||
|
|
||||||
; Colors ------------------------------------------------------- foldstart
|
; Colors ------------------------------------------------------- foldstart
|
||||||
|
@ -38,7 +37,7 @@
|
||||||
; Treesitter ------------------------------------------------------- foldstart
|
; Treesitter ------------------------------------------------------- foldstart
|
||||||
|
|
||||||
|
|
||||||
(pkg :nvim-treesitter [configs (require "nvim-treesitter.configs")]
|
(pkg nvim-treesitter [configs (require "nvim-treesitter.configs")]
|
||||||
(configs.setup
|
(configs.setup
|
||||||
{:ensure_installed "all"
|
{:ensure_installed "all"
|
||||||
:highlight {:enable true
|
:highlight {:enable true
|
||||||
|
@ -67,7 +66,7 @@
|
||||||
|
|
||||||
; gitsigns.nvim ------------------------------------------------------- foldstart
|
; gitsigns.nvim ------------------------------------------------------- foldstart
|
||||||
; https://github.com/lewis6991/gitsigns.nvim
|
; https://github.com/lewis6991/gitsigns.nvim
|
||||||
(pkg :gitsigns.nvim [gitsigns (require "gitsigns")]
|
(pkg gitsigns.nvim [gitsigns (require "gitsigns")]
|
||||||
(gitsigns.setup
|
(gitsigns.setup
|
||||||
{:signs {:add {:text "▍"}
|
{:signs {:add {:text "▍"}
|
||||||
:change {:text "▍"}
|
:change {:text "▍"}
|
||||||
|
@ -86,7 +85,7 @@
|
||||||
; foldend
|
; foldend
|
||||||
|
|
||||||
; :: diffview ------------------------------------------------------------------- foldstart
|
; :: diffview ------------------------------------------------------------------- foldstart
|
||||||
(pkg :diffview.nvim [diffview (require "diffview")
|
(pkg diffview.nvim [diffview (require "diffview")
|
||||||
cb (. (require "diffview.config") :diffview_callback)]
|
cb (. (require "diffview.config") :diffview_callback)]
|
||||||
(diffview.setup
|
(diffview.setup
|
||||||
{:diff_binaries false
|
{:diff_binaries false
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
|
|
||||||
:pkg
|
:pkg
|
||||||
(fn [name mappings ...]
|
(fn [name mappings ...]
|
||||||
`(if (~= nil (. packer_plugins ,name))
|
(if (~= nil (. packer_plugins `,(tostring name)))
|
||||||
(let ,mappings ,...)
|
`(let ,mappings ,...)
|
||||||
(print (.. "plugin disabled " ,name))))}
|
(print (.. "plugin disabled " `,(tostring name)))))}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
(def- colors utils.colors)
|
(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}))
|
(symbols-outline.setup { :highlight_hovered_item true :show_guides true}))
|
||||||
|
|
||||||
|
|
||||||
; LSP config -------------------------------------------------------------------------------- <<<<<
|
; 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
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
; >>>>>
|
; >>>>>
|
||||||
|
|
||||||
; compe -------------------------------------------------------------------------------- <<<<<
|
; compe -------------------------------------------------------------------------------- <<<<<
|
||||||
(pkg :nvim-compe [compe (require "compe")]
|
(pkg nvim-compe [compe (require "compe")]
|
||||||
(compe.setup
|
(compe.setup
|
||||||
{:enabled true
|
{:enabled true
|
||||||
:autocomplete false
|
:autocomplete false
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
; >>>>>
|
; >>>>>
|
||||||
|
|
||||||
; LSP saga -------------------------------------------------------------------------------- <<<<<
|
; LSP saga -------------------------------------------------------------------------------- <<<<<
|
||||||
(pkg :lspsaga.nvim [saga (require "lspsaga")]
|
(pkg lspsaga.nvim [saga (require "lspsaga")]
|
||||||
(saga.init_lsp_saga
|
(saga.init_lsp_saga
|
||||||
{:border_style "single" ; single double round plus
|
{:border_style "single" ; single double round plus
|
||||||
:code_action_prompt {:enable true
|
:code_action_prompt {:enable true
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
; >>>>>
|
; >>>>>
|
||||||
|
|
||||||
; LSP trouble -------------------------------------------------------------------------------- <<<<<
|
; LSP trouble -------------------------------------------------------------------------------- <<<<<
|
||||||
(pkg :lsp-trouble.nvim [trouble (require "trouble")]
|
(pkg lsp-trouble.nvim [trouble (require "trouble")]
|
||||||
(trouble.setup
|
(trouble.setup
|
||||||
{:icons false
|
{:icons false
|
||||||
:auto_preview true
|
: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}}}))
|
(rust-tools.setup { :tools { :inlay_hints { :show_parameter_hints false}}}))
|
||||||
|
|
||||||
(set vim.o.signcolumn "yes")
|
(set vim.o.signcolumn "yes")
|
||||||
|
|
|
@ -252,6 +252,7 @@ hi SignifySignAdd cterm=NONE gui=NONE guifg='#8ec07c'
|
||||||
"source $VIM_ROOT/whichkeyConfig.vim
|
"source $VIM_ROOT/whichkeyConfig.vim
|
||||||
|
|
||||||
let g:aniseed#env = v:true
|
let g:aniseed#env = v:true
|
||||||
|
"let g:aniseed#env = { "compile": v:false }
|
||||||
|
|
||||||
"let g:lexima_no_default_rules = v:true
|
"let g:lexima_no_default_rules = v:true
|
||||||
"call lexima#set_default_rules()
|
"call lexima#set_default_rules()
|
||||||
|
|
|
@ -98,6 +98,11 @@ require("packer").startup(function(use)
|
||||||
use "honza/vim-snippets"
|
use "honza/vim-snippets"
|
||||||
use "tommcdo/vim-exchange"
|
use "tommcdo/vim-exchange"
|
||||||
use "kien/rainbow_parentheses.vim"
|
use "kien/rainbow_parentheses.vim"
|
||||||
|
|
||||||
|
--use {
|
||||||
|
--"eraserhd/parinfer-rust",
|
||||||
|
--run = "cargo build --release"
|
||||||
|
--}
|
||||||
use "bhurlow/vim-parinfer"
|
use "bhurlow/vim-parinfer"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue