all repos

init.lua @ dd6efc4

my nvim config
1 files changed, 9 insertions(+), 4 deletions(-)
fix: disable cmp in org-roam-select window
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-03-01 17:37:08 +0200
Parent: 5e9a9c1
M lua/plugins/completion.lua

@@ -32,14 +32,19 @@ custom_setups = {

function(c) c.setup.filetype("ledger", { sources = { - { name = "hledger", group_index = 0 }, - { name = "buffer", group_index = 0 }, + { name = "hledger" }, + { name = "buffer" }, }, }) end, }, -- snippets are set up in [luasnip.lua] + + enabled = function() + local bt = vim.api.nvim_get_option_value("buftype", { buf = 0 }) + return not (bt == "nofile" or bt == "prompt") + end, ---@diagnostic disable-next-line: missing-fields view = { entries = { follow_cursor = true } },

@@ -102,8 +107,8 @@ end

end, }, sources = { - { name = "buffer", group_index = 2, max_item_count = 4 }, - { name = "path", group_index = 2, max_item_count = 2 }, + { name = "buffer", group_index = 1, max_item_count = 4 }, + { name = "path", group_index = 1, max_item_count = 2 }, }, } end,