NixOS/home/ideavimrc.nix

39 lines
798 B
Nix
Raw Permalink Normal View History

2024-11-08 09:01:09 +07:00
{ ... }:
{
home.file.".ideavimrc".text =
# vim
''
set nrformats-=octal
set incsearch
set scrolloff=5
set sidescrolloff=5
set history=1000
set clipboard^=unnamedplus,unnamed
set hlsearch
set ignorecase
set smartcase
set visualbell
set showmode
set number relativenumber
" change leader key to space
nmap <space> <nop>
let mapleader = " "
" Smart join for <C-J>
set ideajoin
" Map vim marks to IDEA global marks
set ideamarks
" Mappings
nmap gd <Action>(GotoTypeDeclaration)
nmap gi <Action>(GotoImplementation)
nmap <F2> <Action>(RenameElement)
nmap K <Action>(ShowHoverInfo)
nmap <leader>db <Action>(ToggleLineBreakpoint)
'';
}