update neovim
This commit is contained in:
parent
5a7d3ae236
commit
1f64abccfa
6 changed files with 73 additions and 52 deletions
|
@ -44,6 +44,21 @@ set noshowmode
|
|||
set showtabline=1 "only show tabline when more than 1 tab
|
||||
set updatetime=300
|
||||
|
||||
" Don't pass messages to |ins-completion-menu|.
|
||||
set shortmess+=c
|
||||
|
||||
" Give more space for displaying messages.
|
||||
set cmdheight=2
|
||||
|
||||
" Always show the signcolumn, otherwise it would shift the text each time
|
||||
" diagnostics appear/become resolved.
|
||||
if has("nvim-0.5.0") || has("patch-8.1.1564")
|
||||
" Recently vim can merge signcolumn and number column into one
|
||||
set signcolumn=number
|
||||
else
|
||||
set signcolumn=yes
|
||||
endif
|
||||
|
||||
" exclude quickfix from the buffers list
|
||||
augroup qf
|
||||
autocmd!
|
||||
|
|
|
@ -23,7 +23,10 @@
|
|||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cyryl = import ./nixos/home-manager;
|
||||
home-manager.users.cyryl = {
|
||||
imports = [ ./nixos/home-manager ];
|
||||
_module.args.inputs = inputs;
|
||||
};
|
||||
}
|
||||
|
||||
];
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./tailscale-skinnyv.nix
|
||||
../../boot.nix
|
||||
../../common.nix
|
||||
../../gfx-intel.nix
|
||||
../../i3
|
||||
../../tailscale.nix
|
||||
./tailscale-skinnyv.nix
|
||||
../../distributed-builds.nix
|
||||
../../gui
|
||||
../../git
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
imports =
|
||||
[
|
||||
|
@ -52,7 +52,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
|
||||
system = {
|
||||
stateVersion = "20.03";
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home.sessionVariables = {
|
||||
|
|
|
@ -1,49 +1,53 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.file.".vimrc".source = ../../../.vimrc.nixos;
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
withNodeJs = true;
|
||||
withPython3 = true;
|
||||
withRuby = true;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
ack-vim
|
||||
coc-highlight
|
||||
coc-nvim
|
||||
coc-rust-analyzer
|
||||
ctrlp-vim
|
||||
editorconfig-vim
|
||||
fzf-vim
|
||||
quickfix-reflector-vim
|
||||
rainbow
|
||||
tabular
|
||||
vim-airline
|
||||
vim-airline-themes
|
||||
vim-autoformat
|
||||
vim-colors-solarized
|
||||
vim-devicons
|
||||
vim-dirdiff
|
||||
vim-dispatch
|
||||
vim-fugitive
|
||||
vim-gitgutter
|
||||
vim-markdown
|
||||
vim-nix
|
||||
vim-sensible
|
||||
vim-startify
|
||||
vim-surround
|
||||
vim-toml
|
||||
{ config, pkgs, inputs, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
|
||||
in
|
||||
{
|
||||
home.file.".vimrc".source = ../../../.vimrc.nixos;
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
extraConfig = ''
|
||||
if filereadable($HOME . "/.vimrc")
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
withNodeJs = true;
|
||||
withPython3 = true;
|
||||
withRuby = true;
|
||||
package = unstable.neovim-unwrapped;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
ack-vim
|
||||
coc-highlight
|
||||
coc-nvim
|
||||
coc-rust-analyzer
|
||||
ctrlp-vim
|
||||
editorconfig-vim
|
||||
fzf-vim
|
||||
quickfix-reflector-vim
|
||||
rainbow
|
||||
tabular
|
||||
vim-airline
|
||||
vim-airline-themes
|
||||
vim-autoformat
|
||||
vim-colors-solarized
|
||||
vim-devicons
|
||||
vim-dirdiff
|
||||
vim-dispatch
|
||||
vim-fugitive
|
||||
vim-gitgutter
|
||||
vim-markdown
|
||||
vim-nix
|
||||
vim-sensible
|
||||
vim-startify
|
||||
vim-surround
|
||||
vim-toml
|
||||
];
|
||||
extraConfig = ''
|
||||
if filereadable($HOME . "/.vimrc")
|
||||
source $HOME/.vimrc
|
||||
endif
|
||||
'';
|
||||
};
|
||||
}
|
||||
endif
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue