aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2022-12-06 17:23:41 +0800
committerGitHub <noreply@github.com>2022-12-06 17:23:41 +0800
commit8faa599646f482d3ed04e645eb04af94bcd12feb (patch)
tree7a042df867a43b48aad6111e2f7683b0c90a0cd4 /lua/lspconfig/util.lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.tar
nvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.tar.gz
nvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.tar.bz2
nvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.tar.lz
nvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.tar.xz
nvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.tar.zst
nvim-lspconfig-8faa599646f482d3ed04e645eb04af94bcd12feb.zip
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
Diffstat (limited to 'lua/lspconfig/util.lua')
-rw-r--r--lua/lspconfig/util.lua3
1 files changed, 0 insertions, 3 deletions
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