Tweak Orgmode
This commit is contained in:
+16
-1
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user