vim config more
This commit is contained in:
parent
528166dd51
commit
eff0f88f71
|
@ -9,6 +9,7 @@
|
|||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./hostname.nix
|
||||
./nvim.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
@ -167,6 +168,7 @@
|
|||
gdb
|
||||
|
||||
# other
|
||||
nodejs
|
||||
python38
|
||||
neofetch
|
||||
pavucontrol
|
||||
|
|
24
nvim.nix
24
nvim.nix
|
@ -6,23 +6,16 @@
|
|||
|
||||
{
|
||||
|
||||
packageOverrides = pkgs: with pkgs; {
|
||||
myNeovim = neovim.override {
|
||||
configure {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(neovim.override {
|
||||
configure = {
|
||||
customRC = ''
|
||||
syntax on
|
||||
set mouse=a
|
||||
filetype plugin indent on
|
||||
let g:rustfmt_autosave = 1
|
||||
let g:rustfmt_autosave = 1
|
||||
|
||||
set signcolumn=yes
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
\ coc#refresh()
|
||||
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
||||
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
|
||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
|
||||
'';
|
||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
start = [
|
||||
|
@ -34,11 +27,14 @@
|
|||
|
||||
rust-vim
|
||||
vimwiki
|
||||
vim-nix
|
||||
rainbow
|
||||
nvim-colorizer-lua
|
||||
];
|
||||
opt = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
)];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue