Improve markdown handling in neovim
This commit is contained in:
parent
a0a5362564
commit
6d65d36c8d
2 changed files with 10 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
plugins = with pkgs.vimPlugins; [ vim-nix ];
|
plugins = with pkgs.vimPlugins; [ vim-nix vim-markdown ];
|
||||||
extraConfig = builtins.readFile ./vimrc;
|
extraConfig = builtins.readFile ./vimrc;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
14
neovim/vimrc
14
neovim/vimrc
|
@ -1,7 +1,5 @@
|
||||||
" Temporary configuration for editing Nix files
|
" Temporary configuration for editing Nix files
|
||||||
syntax on
|
syntax on set autoindent set expandtab
|
||||||
set autoindent
|
|
||||||
set expandtab
|
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
|
|
||||||
|
@ -19,5 +17,11 @@ map <C-w>s :vsplit<CR>
|
||||||
set clipboard+=unnamedplus
|
set clipboard+=unnamedplus
|
||||||
|
|
||||||
" Markdown configuration
|
" Markdown configuration
|
||||||
autocmd FileType markdown setlocal spell
|
autocmd FileType markdown setlocal spell spelllang+=cjk linebreak expandtab
|
||||||
autocmd FileType markdown setlocal linebreak
|
let g:vim_markdown_fenced_languages = ['rs=rust', 'RS=rust'] " https://github.com/preservim/vim-markdown/issues/618
|
||||||
|
let g:vim_markdown_frontmatter = 1
|
||||||
|
|
||||||
|
" Tegaki Tuesday formatting
|
||||||
|
autocmd BufRead,BufNewFile */tegakituesday.com/content/** set formatoptions-=r
|
||||||
|
" prevent automatically adding new hyphen on enter, though causes some issues
|
||||||
|
" https://stackoverflow.com/a/4896097
|
||||||
|
|
Loading…
Add table
Reference in a new issue