aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-20 20:59:52 -0800
committerAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-20 20:59:52 -0800
commitb7170f2d722cee24a62eb74ac836d6192e5475dc (patch)
treeae2787266bf1c09527af6eb79cb0a75bebdb216f /runtime/lua/vim/lsp/util.lua
parent7bf766ad0903574b6202af0d2e11d306d656b491 (diff)
downloadrneovim-b7170f2d722cee24a62eb74ac836d6192e5475dc.tar.gz
rneovim-b7170f2d722cee24a62eb74ac836d6192e5475dc.tar.bz2
rneovim-b7170f2d722cee24a62eb74ac836d6192e5475dc.zip
Remove resolve_bufnr/lualint
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 004fb81cba..dcf2c17df4 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -26,13 +26,6 @@ local function remove_prefix(prefix, word)
return word:sub(prefix_length + 1)
end
-local function resolve_bufnr(bufnr)
- if bufnr == nil or bufnr == 0 then
- return api.nvim_get_current_buf()
- end
- return bufnr
-end
-
function M.apply_edit_to_lines(lines, start_pos, end_pos, new_lines)
-- 0-indexing to 1-indexing makes things look a bit worse.
local i_0 = start_pos[1] + 1