Skip to content

Commit 50735e0

Browse files
committed
Disable cmp for more file types
1 parent fc25477 commit 50735e0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lua/config-plugins/cmp.lua

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
vim.api.nvim_create_autocmd("FileType", {
22
callback = function()
3-
local filetypes = { "gitcommit", "markdown" }
4-
for _, f in ipairs(filetypes) do
3+
local filetypes_wo_autocomplete = {
4+
"NeogitCommitMessage",
5+
"TelescopePrompt",
6+
"gitcommit",
7+
"markdown",
8+
}
9+
for _, f in ipairs(filetypes_wo_autocomplete) do
510
if vim.bo.filetype == f then
611
require("cmp").setup.filetype(f, {
712
enabled = false,

lua/config-plugins/conform.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ return {
66
formatters_by_ft = {
77
lua = { "stylua" },
88
-- Conform will run multiple formatters sequentially
9-
sh = { "shellcheck" },
109
python = { "isort", "ruff_format" },
10+
sh = { "shellcheck" },
1111
terraform = { "terraform_fmt" },
1212
},
1313
format_on_save = {

0 commit comments

Comments
 (0)