parent
3348300ab7
commit
ac2b846662
18 changed files with 563 additions and 315 deletions
common/home/neovim/langs
48
common/home/neovim/langs/markdown.nix
Normal file
48
common/home/neovim/langs/markdown.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
vimplugin-easytables-src,
|
||||
...
|
||||
}: let
|
||||
inherit (config.vars) neovimIde;
|
||||
inherit (pkgs) vimPlugins;
|
||||
|
||||
buildPlugin = pname: src:
|
||||
pkgs.vimUtils.buildVimPlugin {
|
||||
inherit pname src;
|
||||
version = src.shortRev;
|
||||
};
|
||||
in
|
||||
lib.mkIf neovimIde {
|
||||
programs = {
|
||||
neovim = {
|
||||
coc.settings = {
|
||||
markdownlint.config = {
|
||||
no-trailing-spaces = true;
|
||||
no-multiple-blanks = false;
|
||||
no-duplicate-heading = false;
|
||||
line-length = {
|
||||
tables = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
plugins = [
|
||||
vimPlugins.markdown-preview-nvim
|
||||
vimPlugins.coc-markdownlint
|
||||
{
|
||||
plugin = buildPlugin "easytables-nvim" vimplugin-easytables-src;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
require('easytables').setup();
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue