about summary refs log tree commit diff
path: root/fnl/nvrc/packs
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-01 22:20:04 +0900
committersefidel <contact@sefidel.net>2023-10-01 23:13:12 +0900
commitff2b7e744afec051844aa20e25b9564a44505ffb (patch)
tree777e507fb2531b40da22a3c7f378e2f4555c024b /fnl/nvrc/packs
parent9805575ca35b2c1519e363309a9965bc56bb26a0 (diff)
downloadnvimrc-ff2b7e744afec051844aa20e25b9564a44505ffb.tar.gz
nvimrc-ff2b7e744afec051844aa20e25b9564a44505ffb.zip
feat(pack): aggressively lazy load packs
Diffstat (limited to 'fnl/nvrc/packs')
-rw-r--r--fnl/nvrc/packs/lspconfig.fnl6
1 files changed, 0 insertions, 6 deletions
diff --git a/fnl/nvrc/packs/lspconfig.fnl b/fnl/nvrc/packs/lspconfig.fnl
index e69c337..55d0bd0 100644
--- a/fnl/nvrc/packs/lspconfig.fnl
+++ b/fnl/nvrc/packs/lspconfig.fnl
@@ -10,12 +10,6 @@
         autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()
         augroup END" false))))
 
-(fn better_root_pattern [patterns except-patterns]
-  "match path if one of the given patterns is matched, EXCEPT if one of the except-patterns is matched"
-  (fn [path]
-    (when (not ((lsp.util.root_pattern except-patterns) path))
-      ((lsp.util.root_pattern patterns) path))))
-
 (local default_capabilities (vim.lsp.protocol.make_client_capabilities))
 
 (fn init_lsp [lsp-name ?opts]