Tweak Orgmode

This commit is contained in:
Christopher Williams
2026-01-12 09:21:38 -05:00
parent 2e2010c48d
commit 11932ebf7f
3 changed files with 18 additions and 1 deletions
+16 -1
View File
@@ -51,6 +51,9 @@ local M = {
sources = {
-- add lazydev to your completion providers
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
per_filetype = {
org = { "orgmode" }
},
providers = {
lazydev = {
name = "LazyDev",
@@ -58,6 +61,11 @@ local M = {
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
orgmode = {
name = "Orgmode",
module = "orgmode.org.autocompletion.blink",
fallbacks = { "buffer" },
}
},
},
@@ -103,7 +111,14 @@ local M = {
-- you can add other fields for setting up lsp server in this table
})
end
require("ufo").setup()
require("ufo").setup({
provider_selector = function(bufnr, filetype, buftype)
local ftMap = {
org = "treesitter",
}
return ftMap[filetype] or {"treesitter", "indent"}
end
})
end,
}
}