update neovim

This commit is contained in:
Cyryl Płotnicki 2021-09-22 13:41:05 +01:00
parent 5a7d3ae236
commit 1f64abccfa
6 changed files with 73 additions and 52 deletions

View file

@ -44,6 +44,21 @@ set noshowmode
set showtabline=1 "only show tabline when more than 1 tab set showtabline=1 "only show tabline when more than 1 tab
set updatetime=300 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 " exclude quickfix from the buffers list
augroup qf augroup qf
autocmd! autocmd!

View file

@ -23,7 +23,10 @@
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = 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;
};
} }
]; ];

View file

@ -4,12 +4,12 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./tailscale-skinnyv.nix
../../boot.nix ../../boot.nix
../../common.nix ../../common.nix
../../gfx-intel.nix ../../gfx-intel.nix
../../i3 ../../i3
../../tailscale.nix ../../tailscale.nix
./tailscale-skinnyv.nix
../../distributed-builds.nix ../../distributed-builds.nix
../../gui ../../gui
../../git ../../git

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, inputs, ... }:
{ {
imports = imports =
[ [
@ -52,7 +52,6 @@
''; '';
}; };
system = { system = {
stateVersion = "20.03"; stateVersion = "20.03";
}; };

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
{ {
home.sessionVariables = { home.sessionVariables = {

View file

@ -1,5 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
{ let
unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
in
{
home.file.".vimrc".source = ../../../.vimrc.nixos; home.file.".vimrc".source = ../../../.vimrc.nixos;
home.packages = with pkgs; [ home.packages = with pkgs; [
ripgrep ripgrep
@ -12,6 +15,7 @@
withNodeJs = true; withNodeJs = true;
withPython3 = true; withPython3 = true;
withRuby = true; withRuby = true;
package = unstable.neovim-unwrapped;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
ack-vim ack-vim
@ -46,4 +50,4 @@
endif endif
''; '';
}; };
} }