neovim: enable neogen

This commit is contained in:
Aaron Bieber 2023-01-23 17:30:06 -07:00
parent b4a5da13dd
commit 35953b3f9a
No known key found for this signature in database
2 changed files with 18 additions and 1 deletions

View File

@ -60,6 +60,9 @@ require("obsidian").setup({
}
})
require'nvim-treesitter.configs'.setup({})
require('neogen').setup({})
cmd [[highlight NvimTreeOpenedFolderName guifg=default]]
cmd [[highlight NvimTreeFolderName guifg=default]]
@ -74,6 +77,7 @@ o.hlsearch = true;
map('n', '<C-n>', ':NvimTreeToggle<CR>', { noremap = true })
map('n', '<C-p>', ':Files<CR>', { noremap = true })
map('n', '<leader>r', ':NvimTreeRefresh<CR>', { noremap = true })
map('n', '<leader>n', ':Neogen<CR>', { noremap = true })
map('n', '<leader>s', ':%s/\\s\\+$//e', { noremap = true })
map('n', '<leader>fm', ':Telescope manix<CR>', {})
map('n', '<leader>mo', ':MindOpenMain<CR>', {})

View File

@ -33,6 +33,17 @@ let
};
dependencies = with vimPlugins; [ nvim-cmp tabular ];
};
neogen = pkgs.vimUtils.buildVimPluginFrom2Nix rec {
pname = "neogen";
version = "2023-01-16";
src = pkgs.fetchFromGitHub {
owner = "danymat";
repo = pname;
rev = "465af9d6c6fb7f360175991dcc23fc10917e3a06";
sha256 = "sha256-I8vlVDSJQqFfLkqRS8lwdVAEUxKwi+IKSGFVqZ6l2SE=";
fetchSubmodules = true;
};
};
baseVimPackages = with vimPlugins; [
fugitive
fzf-vim
@ -40,7 +51,6 @@ let
nvim-lspconfig
nvim-tree-lua
rust-vim
obsidian
telescope-fzf-native-nvim
telescope-nvim
vimagit
@ -50,7 +60,10 @@ let
vim-nix
vim-ocaml
zig-vim
nvim-treesitter.withAllGrammars
neogen
obsidian
parchment
vacme
];