cleanup vim config around formatting
This commit is contained in:
parent
40cc63c50d
commit
bb2ced8b81
5 changed files with 10 additions and 11 deletions
3
.vimrc
3
.vimrc
|
@ -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
2
.vimrc.filetypes
Normal file
|
@ -0,0 +1,2 @@
|
|||
autocmd FileType yaml let b:autoformat_autoindent=0
|
||||
let g:run_all_formatters_yaml = 0
|
|
@ -1,3 +0,0 @@
|
|||
source ~/dev/dotfiles/.vimrc.plugins-settings
|
||||
source ~/dev/dotfiles/.vimrc.settings
|
||||
source ~/dev/dotfiles/.vimrc.keymap
|
|
@ -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 "" .'
|
||||
|
|
|
@ -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
|
||||
|
@ -42,7 +40,7 @@
|
|||
];
|
||||
extraConfig = ''
|
||||
if filereadable($HOME . "/.vimrc")
|
||||
source $HOME/.vimrc
|
||||
source $HOME/.vimrc
|
||||
endif
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue