nix/home-manager/neovim.nix

82 lines
2.3 KiB
Nix
Raw Normal View History

2023-07-01 19:02:59 +09:00
{ config, pkgs, ... }: {
2023-07-01 21:25:37 +09:00
programs.neovim = {
2023-07-01 19:02:59 +09:00
enable = true;
2023-07-01 21:25:07 +09:00
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
2023-07-01 20:08:44 +09:00
plugins = with pkgs.vimPlugins; [
2023-08-21 16:51:00 +09:00
# vim-airline # Trying out lualine - below
2023-07-01 20:42:01 +09:00
YouCompleteMe
2023-07-01 20:14:29 +09:00
tabnine-vim
2023-07-01 20:08:44 +09:00
rainbow
2023-08-21 16:51:00 +09:00
zen-mode-nvim
2023-07-01 20:42:01 +09:00
# Themes
2023-07-01 21:02:03 +09:00
nord-vim
2023-07-01 20:42:01 +09:00
gruvbox
2023-07-01 21:54:54 +09:00
tokyonight-nvim
2023-07-02 16:29:25 +09:00
# https://github.com/figsoda/cfg/blob/main/src/programs/neovim/configure/packages.nix
2023-08-21 16:51:00 +09:00
bufferline-nvim # https://github.com/akinsho/bufferline.nvim/#configuration
2023-08-21 18:21:33 +09:00
cmp-buffer
cmp-cmdline
cmp-dap
cmp-nvim-lsp
cmp-nvim-lsp-document-symbol
cmp-path
cmp_luasnip
2023-08-21 16:51:00 +09:00
comment-nvim # https://github.com/numtostr/comment.nvim/
2023-07-12 23:41:12 +09:00
dressing-nvim
2023-08-21 16:51:00 +09:00
gitsigns-nvim # https://github.com/lewis6991/gitsigns.nvim/
indent-blankline-nvim # https://github.com/lukas-reineke/indent-blankline.nvim/
leap-nvim # https://github.com/ggandor/leap.nvim/
lspkind-nvim # https://github.com/onsails/lspkind.nvim/
lualine-nvim # https://github.com/nvim-lualine/lualine.nvim/
2023-08-21 18:21:33 +09:00
luasnip # https://github.com/l3mon4d3/luasnip/
neo-tree-nvim # https://github.com/nvim-neo-tree/neo-tree.nvim/
nix-develop-nvim # https://github.com/figsoda/nix-develop.nvim/
noice-nvim # https://github.com/folke/noice.nvim/
numb-nvim # https://github.com/nacro90/numb.nvim/
nvim-cmp # https://github.com/hrsh7th/nvim-cmp
2023-07-02 16:29:25 +09:00
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
telescope-fzf-native-nvim
telescope-nvim
trouble-nvim
2023-08-21 18:21:33 +09:00
vim-fugitive # https://github.com/tpope/vim-fugitive
2023-07-02 16:29:25 +09:00
vim-lastplace
vim-visual-multi
2023-07-01 20:08:44 +09:00
];
2023-07-01 19:02:59 +09: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 08:49:27 +09:00
let g:rainbow_active = 1
2023-08-15 11:05:06 +09:00
colorscheme gruvbox
2023-07-01 19:02:59 +09:00
'';
};
2023-07-02 21:44:38 +09:00
}