{pkgs, ...}: { xdg.desktopEntries = { "nvim".name = "Neovim wrapper"; "nvim".exec = "nvim %F"; "nvim".noDisplay = true; }; programs.neovim = { enable = true; viAlias = true; vimAlias = true; vimdiffAlias = true; withNodeJs = true; withPython3 = true; withRuby = true; defaultEditor = true; extraPackages = with pkgs; [ fd ripgrep tree-sitter nil ]; extraConfig = '' set autowrite set background=dark set clipboard+=unnamedplus set expandtab set laststatus=2 set noshowmode set noswapfile set number set relativenumber set shiftwidth=2 set signcolumn=yes set smartindent set tabstop=2 set termguicolors set updatetime=100 set wrap set splitright set splitbelow nmap bp nmap bn nnoremap noh nnoremap w bdeletebnext ''; }; }