Added wakatime and updated null-ls

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-21 00:24:55 +01:00
parent 94516d7809
commit 9893a9ec5a
2 changed files with 14 additions and 0 deletions

View File

@@ -29,6 +29,15 @@ return {
vim.lsp.buf.format({ async = false })
end,
})
elseif client.server_capabilities.documentFormattingProvider then
vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })
vim.api.nvim_create_autocmd("BufWritePre", {
group = augroup,
buffer = bufnr,
callback = function()
vim.lsp.buf.format({ async = false })
end,
})
else
vim.notify("Formatting not supported")
end

View File

@@ -0,0 +1,5 @@
return {
"wakatime/vim-wakatime",
name = "Wakatime",
lazy = false,
}