From 8faa599646f482d3ed04e645eb04af94bcd12feb Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 6 Dec 2022 17:23:41 +0800 Subject: feat: support unnamed buffer with single_file_support (#2226) * feat: support unnamed buffer with single_file_support * fix: make some code simple clear * feat: update doc * fix: grammar * fix: grammar --- lua/lspconfig/util.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'lua/lspconfig/util.lua') diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index f8a359f0..a1f04bec 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -20,9 +20,6 @@ M.default_config = { M.on_setup = nil function M.bufname_valid(bufname) - if not bufname then - return false - end if bufname:match '^/' or bufname:match '^[a-zA-Z]:' or bufname:match '^zipfile://' or bufname:match '^tarfile:' then return true end -- cgit v1.2.3-70-g09d2