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

14 lines
345 B
Lua
Raw Normal View History

local opt = vim.opt_local
2024-05-02 18:45:22 +00:00
2024-07-20 11:31:07 +00:00
opt.spell = true
2024-05-02 18:45:22 +00:00
opt.wrap = true
2024-05-02 19:11:50 +00:00
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" })
2024-05-02 19:11:50 +00:00
table.insert(sources, { name = "path" })
cmp.setup.buffer { sources = sources }