style: auto-format with stylua

remotes/origin/HEAD
chrisgrieser 2024-06-19 10:45:00 +00:00 committed by github-actions[bot]
parent dda24ddca2
commit 6ea8fe8462
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,9 @@ function M.lspSupportsRenaming()
local clients = vim.lsp.get_clients { bufnr = 0 } local clients = vim.lsp.get_clients { bufnr = 0 }
for _, client in ipairs(clients) do for _, client in ipairs(clients) do
local workspaceCap = client.server_capabilities.workspace 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 if supports then return true end
end end
return false return false

View File

@ -3,7 +3,7 @@ local M = {}
---@param bufnr? number|"#"|"$" ---@param bufnr? number|"#"|"$"
function M.bwipeout(bufnr) 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 }) vim.api.nvim_buf_delete(bufnr, { force = true })
end end