mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
fix(nvim): error on opening Git commit messages or empty files
This commit is contained in:
@@ -45,16 +45,6 @@ vim.api.nvim_create_autocmd("InsertLeave", {
|
||||
command = "set nopaste",
|
||||
})
|
||||
|
||||
-- Turn off lualine in Git commit messages
|
||||
vim.api.nvim_create_autocmd({ "User LspProgressStatusUpdated" }, {
|
||||
callback = function()
|
||||
local bufname = vim.api.nvim_buf_get_name(0)
|
||||
if not string.match(bufname, "COMMIT_EDITMSG") then
|
||||
require("lualine").refresh()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Change conceallevel for JSON files
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "json", "jsonc" },
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
return {
|
||||
"linrongbin16/lsp-progress.nvim",
|
||||
event = "VimEnter",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("lsp-progress").setup()
|
||||
|
||||
Reference in New Issue
Block a user