replace plain neovim with nixvim

This commit is contained in:
Adithya 2023-08-05 17:42:16 +05:30
parent d3cdae9660
commit 2dce222fae
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 46 additions and 57 deletions

View file

@ -13,8 +13,7 @@
./gnupg.nix ./gnupg.nix
./kitty.nix ./kitty.nix
./mpv.nix ./mpv.nix
#./neovim.nix ./neovim.nix
./nixvim.nix
./starship.nix ./starship.nix
./tmux.nix ./tmux.nix
./virt-manager.nix ./virt-manager.nix

View file

@ -1,49 +1,51 @@
{pkgs, ...}: { {pkgs, ...}: {
#xdg.desktopEntries = { programs.nixvim = {
# "nvim".name = "Neovim wrapper"; enable = true;
# "nvim".exec = "nvim %F";
# "nvim".noDisplay = true;
#};
programs.neovim = {
enable = false;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
vimdiffAlias = true; clipboard.providers.wl-copy.enable = true;
withNodeJs = true; colorscheme = "dracula";
withPython3 = true; extraPlugins = with pkgs.vimPlugins; [
withRuby = true; dracula-nvim
defaultEditor = true;
extraPackages = with pkgs; [
fd
ripgrep
tree-sitter
nil
]; ];
options = {
extraConfig = '' autowrite = true;
set autowrite background = "dark";
set background=dark clipboard = "unnamedplus";
set clipboard+=unnamedplus expandtab = true;
set expandtab laststatus = 2;
set laststatus=2 showmode = false;
set noshowmode swapfile = false;
set noswapfile number = true;
set number relativenumber = true;
set relativenumber shiftwidth = 2;
set shiftwidth=2 signcolumn = "yes";
set signcolumn=yes smartindent = true;
set smartindent tabstop = 2;
set tabstop=2 termguicolors = true;
set termguicolors updatetime = 100;
set updatetime=100 wrap = true;
set wrap splitright = true;
set splitright splitbelow = true;
set splitbelow };
maps = {
nmap <C-a> <cmd>bp<Return> normal = {
nmap <C-d> <cmd>bn<Return> "<C-a>" = {
nnoremap <C-h> <cmd>noh<Return> silent = true;
nnoremap <leader>w <cmd>bdelete<CR><cmd>bnext<Return> action = "<cmd>bp<Return>";
''; };
"<C-d>" = {
silent = true;
action = "<cmd>bn<Return>";
};
"<C-h>" = {
silent = true;
action = "<cmd>noh<Return>";
};
"<leader>w" = {
action = "<cmd>bdelete<CR><cmd>bnext><Return>";
};
};
};
}; };
} }

View file

@ -1,12 +0,0 @@
{pkgs, ...}: {
programs.nixvim = {
enable = true;
viAlias = true;
vimAlias = true;
clipboard.providers.wl-copy.enable = true;
colorscheme = "dracula";
extraPlugins = with pkgs.vimPlugins; [
dracula-nvim
];
};
}