style: auto-format with stylua
parent
dda24ddca2
commit
6ea8fe8462
|
|
@ -32,7 +32,9 @@ function M.lspSupportsRenaming()
|
|||
local clients = vim.lsp.get_clients { bufnr = 0 }
|
||||
for _, client in ipairs(clients) do
|
||||
local workspaceCap = client.server_capabilities.workspace
|
||||
local supports = workspaceCap and workspaceCap.fileOperations and workspaceCap.fileOperations.willRename
|
||||
local supports = workspaceCap
|
||||
and workspaceCap.fileOperations
|
||||
and workspaceCap.fileOperations.willRename
|
||||
if supports then return true end
|
||||
end
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ local M = {}
|
|||
|
||||
---@param bufnr? number|"#"|"$"
|
||||
function M.bwipeout(bufnr)
|
||||
bufnr = bufnr and vim.fn.bufnr(bufnr) or 0
|
||||
bufnr = bufnr and vim.fn.bufnr(bufnr) or 0
|
||||
vim.api.nvim_buf_delete(bufnr, { force = true })
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue