Re-add ftplugin for markdown
files
This commit is contained in:
parent
4c1ef1c01d
commit
ffbfc56d07
1 changed files with 22 additions and 0 deletions
22
modules2/nixvim/ftplugin/markdown.nix
Normal file
22
modules2/nixvim/ftplugin/markdown.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
flake.modules.nixvim.custom = {
|
||||||
|
plugins.cmp-path.enable = true;
|
||||||
|
|
||||||
|
extraFiles."after/ftplugin/markdown.lua".text =
|
||||||
|
# lua
|
||||||
|
''
|
||||||
|
local opt = vim.opt_local
|
||||||
|
|
||||||
|
opt.spell = true
|
||||||
|
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 = "path" })
|
||||||
|
|
||||||
|
cmp.setup.buffer { sources = sources }
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue