Files
nixos/home/vim.nix
T

152 lines
3.0 KiB
Nix
Raw Normal View History

2022-04-18 11:38:06 -05:00
{ pkgs, ... }:
let
vim-stabs = pkgs.vimUtils.buildVimPlugin {
name = "vim-stabs";
src = pkgs.fetchFromGitHub {
owner = "Thyrum";
repo = "vim-stabs";
rev = "4654d4e000680e1f608b40f155af08873446ed63";
sha256 = "0hi1c5zv38hwxbyrf11fz97r728jgbppz4is7fwzwhfrzhwbw0ga";
};
};
2022-11-14 23:49:23 -06:00
vim-xonsh = pkgs.vimUtils.buildVimPlugin {
name = "vim-xonsh";
src = pkgs.fetchFromGitHub {
owner = "meatballs";
repo = "vim-xonsh";
rev = "2028aac";
sha256 = "sha256-0+dqtlz8LeyOoSiS12rv8aLdzOMj31PuYAyDYWnpNzw=";
};
};
2022-04-18 11:38:06 -05:00
in
{
2023-06-15 15:37:57 -05:00
home.packages = with pkgs; [
ansible-language-server
pyright
];
2023-06-20 19:28:14 -05:00
#programs.neovim = {
# enable = true;
# viAlias = true;
# vimAlias = true;
# vimdiffAlias = true;
# plugins = with pkgs.vimPlugins; [
# ansible-vim
# bufexplorer
#
# #cmp-nvim-lsp
# #cmp-vsnip
# #nvim-lspconfig
# nvim-cmp
#
# jedi-vim
#
# context-vim
# direnv-vim
# fzf-vim
# nerdtree
# nvim-notify
# vim-airline
# vim-gitgutter
# vim-flake8
# vim-fugitive
# vim-indent-guides
# vim-packer
# vim-rooter
# vim-xonsh
# gruvbox
# ];
# extraLuaConfig = builtins.readFile ./init.lua;
# coc = {
# # Currently waiting on resolution of https://github.com/NixOS/nixpkgs/issues/236560
# enable = false;
# };
# };
programs.nixneovim = {
2022-04-18 11:38:06 -05:00
enable = true;
2023-06-20 19:28:14 -05:00
colorscheme = "gruvbox";
globals = {
indent_guides_enable_on_vim_startup = 1;
nix_recommended_style = 0;
NERDTreeIgnore = [
"\\.pyc$"
"\\.pyo$"
"\\.o$"
"\\.class$"
];
};
options = {
background = "dark";
backup = false;
copyindent = true;
cursorline = true;
expandtab = false;
hidden = true;
hlsearch = true;
ignorecase = true;
lazyredraw = true;
list = true;
listchars = "tab:→ ,extends:→,precedes:←,trail:·,eol:¬";
mouse = "a";
number = true;
preserveindent = true;
relativenumber = true;
shiftwidth = 4;
showcmd = true;
showmatch = true;
signcolumn = "yes";
smartcase = true;
softtabstop = 4;
tabstop = 4;
# Setting for CtrlP
wildignore = "*.swp,*.pyc,*.class,.tox";
wrap = false;
writebackup = false;
};
mappings = {
normalVisualOp = {
"<F2>" = ''"<Esc>:BufExplorer<CR>"'';
"<F4>" = ''"<Esc>:NERDTreeToggle<CR>"'';
"<F6>" = ''"<Esc>:Files<CR>"'';
"<C-j>" = ''"<C-w>j<C-w><CR>"'';
"<C-k>" = ''"<C-w>k<C-w><CR>"'';
"<C-h>" = ''"<C-w>h<C-w><CR>"'';
"<C-l>" = ''"<C-w>l<C-w><CR>"'';
};
};
plugins = {
airline.enable = true;
gitgutter.enable = true;
gruvbox.enable = true;
fugitive.enable = true;
notify.enable = true;
packer = {
enable = true;
plugins = [
];
};
};
extraConfigLua = builtins.readFile ./vim/extra.lua;
extraConfigVim = builtins.readFile ./vim/extra.vimrc;
extraPlugins = with pkgs.vimPlugins; [
2022-04-18 11:38:06 -05:00
bufexplorer
2023-06-20 19:28:14 -05:00
nerdtree
nvim-cmp
2023-06-15 15:37:57 -05:00
2023-06-20 19:28:14 -05:00
jedi-vim
2023-06-15 15:37:57 -05:00
2022-11-15 23:31:05 -06:00
context-vim
2022-05-04 13:52:38 -05:00
direnv-vim
2022-11-01 10:54:46 -05:00
fzf-vim
2022-04-18 11:38:06 -05:00
vim-flake8
vim-indent-guides
2022-11-01 10:54:46 -05:00
vim-rooter
2022-11-14 23:49:23 -06:00
vim-xonsh
2022-04-18 11:38:06 -05:00
];
2023-06-20 19:28:14 -05:00
viAlias = true;
vimAlias = true;
2022-04-18 11:38:06 -05:00
};
}