nix/home-manager/neovim.nix

85 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-01 12:02:59 +02:00
{ config, pkgs, ... }: {
2023-07-01 14:25:37 +02:00
programs.neovim = {
2023-07-01 12:02:59 +02:00
enable = true;
2023-07-01 14:25:07 +02:00
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
2023-07-01 13:08:44 +02:00
plugins = with pkgs.vimPlugins; [
vim-airline
2023-07-01 13:42:01 +02:00
YouCompleteMe
2023-07-01 13:14:29 +02:00
tabnine-vim
2023-07-01 13:08:44 +02:00
rainbow
2023-07-01 13:42:01 +02:00
# Themes
vim-airline-themes
2023-07-01 14:02:03 +02:00
nord-vim
2023-07-01 13:42:01 +02:00
gruvbox
2023-07-01 14:54:54 +02:00
tokyonight-nvim
2023-07-02 09:29:25 +02:00
# https://github.com/figsoda/cfg/blob/main/src/programs/neovim/configure/packages.nix
2023-07-12 16:41:12 +02:00
bufferline-nvim
cmp-buffer
cmp-cmdline
cmp-dap
cmp-nvim-lsp
cmp-nvim-lsp-document-symbol
cmp-path
cmp_luasnip
comment-nvim
crates-nvim
dressing-nvim
2023-07-02 09:29:25 +02:00
gitsigns-nvim
indent-blankline-nvim
leap-nvim
lspkind-nvim
lualine-nvim
luasnip
neo-tree-nvim
nix-develop-nvim
noice-nvim
null-ls-nvim
numb-nvim
nvim-cmp
nvim-colorizer-lua
nvim-dap
nvim-dap-ui
nvim-lspconfig
nvim-navic
nvim-notify
nvim-treesitter-textobjects
nvim-treesitter.withAllGrammars
nvim-web-devicons
nvim_context_vt
playground
refactoring-nvim
ron-vim
rust-tools-nvim
telescope-fzf-native-nvim
telescope-nvim
trouble-nvim
vim-fugitive
vim-lastplace
vim-visual-multi
2023-07-01 13:08:44 +02:00
];
2023-07-01 12:02:59 +02:00
extraConfig = ''
set mouse=a
set number
syntax on
set hlsearch
set ignorecase
set smartcase
set autoindent
set ruler
set shiftwidth=2
set expandtab
set softtabstop=2
set cursorline
2023-07-02 01:49:27 +02:00
let g:rainbow_active = 1
2023-08-15 04:05:06 +02:00
colorscheme gruvbox
2023-07-01 12:02:59 +02:00
'';
};
2023-07-02 14:44:38 +02:00
}