This repository has been archived on 2025-01-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
opdavies.nvim/after/ftplugin/rst.lua

13 lines
328 B
Lua
Raw Normal View History

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