Added wakatime and updated null-ls
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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
|
||||
|
||||
5
lua/taken/plugins/wakatime.lua
Normal file
5
lua/taken/plugins/wakatime.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"wakatime/vim-wakatime",
|
||||
name = "Wakatime",
|
||||
lazy = false,
|
||||
}
|
||||
Reference in New Issue
Block a user