added nice neovim configuratons

This commit is contained in:
ISnortPennies 2022-08-12 18:21:08 -04:00
parent 92a800c118
commit 5513491697
4 changed files with 65 additions and 24 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{pkgs, ... }:
{
programs.neovim = {
enable = true;
@ -12,26 +12,16 @@
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
vim-smoothie #smooth scrolling
tokyonight-nvim #color scheme
undotree # better undos
#extra stuff
nvim-tree-lua # file browser
nvim-web-devicons # for tree-lua
# telescope-nvim # file finder
indentLine # indentlines
nvim-treesitter #syntax highlighting
];
extraConfig = ''
:lua require("nvim-tree").setup()
set tabstop=2
set expandtab
set shiftwidth=2
set ignorecase
set incsearch
set number
set noswapfile
let mapleader = "'"
'';
extraConfig = "lua << EOF\n" + builtins.readFile ./init.lua + "\nEOF";
};
}