Skip to content

Commit

Permalink
fix: input ignored with certain dressing.nvim settings (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 25, 2023
1 parent ba2f5f4 commit 84d348e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/tinygit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,9 @@ local function setGitCommitAppearance()
vim.opt_local.colorcolumn = { conf.mediumLen, conf.maxLen }

-- treesitter highlighting
---@diagnostic disable-next-line: inject-field
vim.bo.filetype = "gitcommit"
vim.api.nvim_set_hl(winNs, "Title", { link = "Normal" })

-- fix confirming input field (not working in insert mode due to filetype change)
vim.keymap.set("i", "<CR>", "<Esc><CR>", { buffer = true, remap = true })

-- activate styling of statusline plugins
vim.api.nvim_buf_set_name(0, "COMMIT_EDITMSG")
end,
Expand Down

0 comments on commit 84d348e

Please sign in to comment.