This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/after/ftplugin/rst.lua
Oliver Davies 63906d9445 Include buffer completion for rst files
This is useful when writing presentation slides.
2024-05-23 16:46:11 +01:00

13 lines
328 B
Lua

local opt = vim.opt_local
opt.wrap = true
local cmp = require "cmp"
local sources = cmp.get_config().sources
-- TODO: confirm these aren't aleady in the list of sources to avoid duplicate suggestions.
table.insert(sources, { name = "buffer" })
table.insert(sources, { name = "path" })
cmp.setup.buffer { sources = sources }