mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(nvim): merged utils into helpers
This commit is contained in:
parent
18a6f46a71
commit
dfdb428d04
4 changed files with 26 additions and 31 deletions
|
|
@ -157,8 +157,8 @@
|
|||
:select true}))
|
||||
($))
|
||||
[:i :s])}
|
||||
sources (let [{: Contains} (require :utils)
|
||||
of-filetype (fn [fts] (Contains fts vim.bo.filetype))]
|
||||
sources (let [{: contains} (require :helpers)
|
||||
of-filetype (fn [fts] (contains fts vim.bo.filetype))]
|
||||
[{:name :luasnip}
|
||||
{:name :nvim_lsp}
|
||||
{:name :buffer
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
(import-macros {: exec! : map! : setlocal!} :hibiscus.vim)
|
||||
(local {: require-then : fst} (require :helpers))
|
||||
(local {: require-then : fst : foreach} (require :helpers))
|
||||
(local map vim.keymap.set)
|
||||
(local Foreach (. (require :utils) :Foreach))
|
||||
|
||||
(local servers
|
||||
{:bashls {}
|
||||
|
|
@ -129,7 +128,7 @@
|
|||
new-virt-text))]
|
||||
(require-then :ufo #($.setup {:fold_virt_text_handler handler})))
|
||||
|
||||
(Foreach servers (fn [k v]
|
||||
(foreach servers (fn [k v]
|
||||
(let [config {: capabilities
|
||||
:on_attach #((on_attach $) (v.on_attach $))
|
||||
:settings v.settings}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue