mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
more stuff
This commit is contained in:
parent
ef11d26a1a
commit
63d6a211bb
9 changed files with 24 additions and 27 deletions
|
@ -2,7 +2,6 @@
|
|||
{require {utils utils
|
||||
a aniseed.core
|
||||
str aniseed.string
|
||||
fennel aniseed.fennel
|
||||
popup popup
|
||||
ts nvim-treesitter}
|
||||
require-macros [macros]})
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{require {a aniseed.core
|
||||
nvim aniseed.nvim
|
||||
utils utils
|
||||
fennel aniseed.fennel
|
||||
wk which-key
|
||||
treesitter-selection nvim-treesitter.incremental_selection
|
||||
trouble trouble}
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
:packer-use
|
||||
(fn [...]
|
||||
(let [a (require "aniseed.core")
|
||||
fennel (require "aniseed.fennel")
|
||||
args [...]
|
||||
use-statements []]
|
||||
(for [i 1 (a.count args) 2]
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
:folke/which-key.nvim {}
|
||||
|
||||
:pwntester/octo.nvim {}
|
||||
|
||||
; json query stuff
|
||||
:gennaro-tedesco/nvim-jqx {:ft ["json"]}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
(module plugins.bufferline
|
||||
{require {a aniseed.core
|
||||
fennel aniseed.fennel
|
||||
{autoload {a aniseed.core
|
||||
nvim aniseed.nvim
|
||||
utils utils
|
||||
bufferline bufferline
|
||||
|
|
|
@ -61,6 +61,15 @@
|
|||
(or-empty (utils.keep-if #(~= "master" $1)
|
||||
(?. vim.b :gitsigns_status_dict :head))))
|
||||
|
||||
|
||||
(defn lsp-progress-provider []
|
||||
(let [msgs (vim.lsp.util.get_progress_messages)
|
||||
s (icollect [_ msg (ipairs msgs)]
|
||||
(when msg.message
|
||||
(.. msg.title " " msg.message)))]
|
||||
(or-empty (str.join " | " s))))
|
||||
|
||||
|
||||
(def components
|
||||
{:left {:active {} :inactive {}}
|
||||
:mid {:active {} :inactive {}}
|
||||
|
@ -72,17 +81,10 @@
|
|||
{:provider get-current-filepath :left_sep " "}
|
||||
{:provider git-status-provider :left_sep " " :hl #(vim-mode-hl true)}])
|
||||
|
||||
|
||||
|
||||
(defn get-lsp-progress []
|
||||
(let [msgs (vim.lsp.util.get_progress_messages)
|
||||
s (icollect [_ msg (ipairs msgs)]
|
||||
(when msg.message
|
||||
(.. msg.title " " msg.message)))]
|
||||
(or-empty (str.join " | " s))))
|
||||
|
||||
(set components.mid.active
|
||||
[{:provider get-lsp-progress}])
|
||||
[{:provider lsp-progress-provider
|
||||
:enabled #(< 0 (length (vim.lsp.buf_get_clients)))}])
|
||||
|
||||
|
||||
(set components.right.active
|
||||
[{:provider vim.bo.filetype
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
(module plugins.galaxyline
|
||||
{require {a aniseed.core
|
||||
str aniseed.string
|
||||
fennel aniseed.fennel
|
||||
nvim aniseed.nvim
|
||||
utils utils
|
||||
colors colors
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{require {utils utils
|
||||
a aniseed.core
|
||||
str aniseed.string
|
||||
fennel aniseed.fennel
|
||||
view aniseed.view
|
||||
popup popup
|
||||
compe compe
|
||||
help help-thingy}
|
||||
|
@ -23,7 +23,7 @@
|
|||
(set my_source.abort fuck.abort)
|
||||
(set my_source.documentation
|
||||
(fn [self args]
|
||||
(a.println (fennel.view args))
|
||||
(a.println (view.serialise args))
|
||||
(args.callback
|
||||
(let [help-tag (help.find-help-tag-for args.completed_item.word)]
|
||||
(when help-tag
|
||||
|
@ -59,5 +59,3 @@
|
|||
|
||||
|
||||
|
||||
|
||||
;(print (fennel.view compe))
|
||||
|
|
|
@ -71,7 +71,11 @@
|
|||
|
||||
(defn safe-require [name]
|
||||
(xpcall
|
||||
#(require name)
|
||||
#(
|
||||
;do
|
||||
;(print name)
|
||||
;(time
|
||||
(require name))
|
||||
#(a.println (.. "Error sourcing " name ":\n" (fennel.traceback $1)))))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue