Remove unused nvim package

This commit is contained in:
Bad 2021-04-11 19:26:38 +02:00
parent 0c8b07077e
commit d23101d515
2 changed files with 28 additions and 28 deletions

View file

@ -11,7 +11,6 @@
NIX_BUILD_SHELL = "zsh"; NIX_BUILD_SHELL = "zsh";
}; };
gtk.theme.name = "arc-dark"; gtk.theme.name = "arc-dark";
programs.neovim = import ./vim.nix { pkgs = pkgs; };
}; };
users.users.mae = { users.users.mae = {
uid = 1000; uid = 1000;

View file

@ -1,14 +1,15 @@
{ pkgs, ... }: { pkgs, ... }:
programs.zsh = {
{ {
enable = true; programs.neovim = {
vimdiffAlias = true;
withNodeJs = true;
plugins = with pkgs.vimPlugins; [ enable = true;
{ vimdiffAlias = true;
plugin = coc-nvim; withNodeJs = true;
config = ''
plugins = with pkgs.vimPlugins; [
{
plugin = coc-nvim;
config = ''
nmap <silent> <F2> <Plug>(coc-rename) nmap <silent> <F2> <Plug>(coc-rename)
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
@ -24,27 +25,27 @@ config = ''
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>" vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif endif
''; '';
} }
fzf-vim fzf-vim
{ {
plugin = iceberg-vim; plugin = iceberg-vim;
config = "colorscheme iceberg"; config = "colorscheme iceberg";
} }
vim-sleuth vim-sleuth
coc-json coc-json
coc-html coc-html
coc-tsserver coc-tsserver
neoformat neoformat
undotree undotree
{ {
plugin = vim-jsdoc; plugin = vim-jsdoc;
config = '' config = ''
let g:jsdoc_formatter = "tsdoc" let g:jsdoc_formatter = "tsdoc"
let g:typescript_indent_disable = 1 let g:typescript_indent_disable = 1
''; '';
} }
]; ];
extraConfig = '' extraConfig = ''
set background=dark set background=dark
set termguicolors set termguicolors
@ -55,5 +56,5 @@ extraConfig = ''
set completeopt=menuone,noinsert,noselect set completeopt=menuone,noinsert,noselect
set shortmess+=c set shortmess+=c
''; '';
}; };
} }