This commit is contained in:
parent
a0575bdb2a
commit
703bf836de
210 changed files with 1 additions and 1 deletions
9
modules/nixvim/ftplugin/gitcommit.nix
Normal file
9
modules/nixvim/ftplugin/gitcommit.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
flake.modules.nixvim.custom.extraFiles."after/ftplugin/gitcommit.lua".text =
|
||||
# lua
|
||||
''
|
||||
vim.opt_local.colorcolumn = "50,72"
|
||||
vim.opt_local.spell = true
|
||||
vim.opt_local.textwidth = 72
|
||||
'';
|
||||
}
|
11
modules/nixvim/ftplugin/just.nix
Normal file
11
modules/nixvim/ftplugin/just.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
flake.modules.nixvim.custom = {
|
||||
extraFiles."after/ftplugin/just.lua".text =
|
||||
# lua
|
||||
''
|
||||
local opt = vim.opt_local
|
||||
|
||||
opt.shiftwidth = 4
|
||||
'';
|
||||
};
|
||||
}
|
22
modules/nixvim/ftplugin/markdown.nix
Normal file
22
modules/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