about summary refs log tree commit diff
path: root/fnl/nvrc/packs/lspconfig.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/nvrc/packs/lspconfig.fnl')
-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]