nixos/home-manager/neovim.nix
2022-08-16 00:14:40 -04:00

37 lines
703 B
Nix

{ pkgs, ... }:
{
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
withNodeJs = true;
withPython3 = true;
withRuby = true;
coc = {
enable = true;
package = pkgs.vimPlugins.coc-nvim;
};
plugins = with pkgs.vimPlugins; [
vim-nix
vim-polyglot
vim-smoothie
nvim-tree-lua
nvim-web-devicons
tokyonight-nvim
rainbow
indentLine
undotree
];
extraConfig = ''
:lua require("nvim-tree").setup()
set tabstop=2
set expandtab
set shiftwidth=2
set ignorecase
set incsearch
set number
set noswapfile
let mapleader = "'"
'';
};
}