added neovim formatter pkgs
This commit is contained in:
parent
14c1b77f91
commit
5a8050ed2c
@ -4,22 +4,18 @@
|
|||||||
imports = [ ./zsh.nix ./git.nix ];
|
imports = [ ./zsh.nix ./git.nix ];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "21.05";
|
stateVersion = "21.05";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
VISUAL = "nvim";
|
VISUAL = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [ rizin sshfs nixfmt ];
|
||||||
rizin
|
|
||||||
sshfs
|
|
||||||
nixfmt
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [ nodePackages.prettier cmake-format clang-tools rustfmt ];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
" syntax
|
" syntax
|
||||||
syntax enable
|
syntax enable
|
||||||
@ -76,14 +72,19 @@
|
|||||||
set cindent cinkeys-=0#
|
set cindent cinkeys-=0#
|
||||||
set expandtab shiftwidth=2 tabstop=2 softtabstop=2
|
set expandtab shiftwidth=2 tabstop=2 softtabstop=2
|
||||||
|
|
||||||
set statusline+=%#warningmsg#
|
" Enable alignment
|
||||||
set statusline+=%{SyntasticStatuslineFlag()}
|
let g:neoformat_basic_format_align = 1
|
||||||
set statusline+=%*
|
|
||||||
|
" Enable tab to spaces conversion
|
||||||
|
let g:neoformat_basic_format_retab = 1
|
||||||
|
|
||||||
|
" Enable trimmming of trailing whitespace
|
||||||
|
let g:neoformat_basic_format_trim = 1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
vim-nix
|
vim-nix
|
||||||
molokai
|
molokai
|
||||||
YouCompleteMe
|
YouCompleteMe
|
||||||
@ -95,9 +96,8 @@
|
|||||||
nerdtree
|
nerdtree
|
||||||
vim-easy-align
|
vim-easy-align
|
||||||
vim-fugitive
|
vim-fugitive
|
||||||
vim-yaml
|
|
||||||
vim-autoformat
|
|
||||||
vimtex
|
vimtex
|
||||||
|
neoformat
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user