cleanup vim config around formatting

This commit is contained in:
Cyryl Płotnicki 2022-03-08 09:56:54 +00:00
parent 40cc63c50d
commit bb2ced8b81
5 changed files with 10 additions and 11 deletions

3
.vimrc
View File

@ -1,4 +1,5 @@
source ~/dev/dotfiles/.vimrc.plugins
source ~/dev/dotfiles/.vimrc.plugins-settings
source ~/dev/dotfiles/.vimrc.filetypes
source ~/dev/dotfiles/.vimrc.settings
source ~/dev/dotfiles/.vimrc.keymap

2
.vimrc.filetypes Normal file
View File

@ -0,0 +1,2 @@
autocmd FileType yaml let b:autoformat_autoindent=0
let g:run_all_formatters_yaml = 0

View File

@ -1,3 +0,0 @@
source ~/dev/dotfiles/.vimrc.plugins-settings
source ~/dev/dotfiles/.vimrc.settings
source ~/dev/dotfiles/.vimrc.keymap

View File

@ -4,6 +4,7 @@ let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
au BufWrite * :Autoformat
" let g:autoformat_verbosemode=1
" searching
let $FZF_DEFAULT_COMMAND = 'rga --files --no-messages "" .'

View File

@ -1,9 +1,6 @@
{ config, pkgs, ... }:
{
home.file.".vimrc".source = ../../../.vimrc.nixos;
home.packages = with pkgs; [
ripgrep
];
{ config, pkgs, inputs, ... }: {
home.file.".vimrc".source = ../../../.vimrc;
home.packages = with pkgs; [ ripgrep ];
programs.neovim = {
enable = true;
viAlias = true;
@ -18,6 +15,7 @@
coc-highlight
coc-nvim
coc-rust-analyzer
coc-yaml
ctrlp-vim
editorconfig-vim
fzf-vim