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.plugins-settings
source ~/dev/dotfiles/.vimrc.filetypes
source ~/dev/dotfiles/.vimrc.settings source ~/dev/dotfiles/.vimrc.settings
source ~/dev/dotfiles/.vimrc.keymap 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 let g:airline#extensions#tabline#enabled = 1
au BufWrite * :Autoformat au BufWrite * :Autoformat
" let g:autoformat_verbosemode=1
" searching " searching
let $FZF_DEFAULT_COMMAND = 'rga --files --no-messages "" .' let $FZF_DEFAULT_COMMAND = 'rga --files --no-messages "" .'

View file

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