mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
nvim: treesitter
This commit is contained in:
parent
92f7f05bc9
commit
ead2cd863c
3 changed files with 32 additions and 3 deletions
|
|
@ -27,13 +27,12 @@ in
|
|||
vimAlias = true;
|
||||
viAlias = true;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-nix
|
||||
vim-cool
|
||||
vim-lastplace
|
||||
vim-hexokinase
|
||||
vim-easymotion
|
||||
notmuch-vim
|
||||
rust-vim
|
||||
vim-nix
|
||||
fzf-vim
|
||||
vim-fugitive
|
||||
vim-startify
|
||||
|
|
|
|||
|
|
@ -1,6 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let cocvim = pkgs.callPackage
|
||||
let initvim = pkgs.callPackage
|
||||
({ stdenv, elinks, nodejs }: stdenv.mkDerivation {
|
||||
name = "init.vim";
|
||||
src = ./init.vim;
|
||||
inherit nodejs elinks;
|
||||
buildInputs = [
|
||||
elinks
|
||||
nodejs
|
||||
];
|
||||
phases = [ "buildPhase" ];
|
||||
buildPhase = ''
|
||||
substituteAll $src $out
|
||||
'';
|
||||
})
|
||||
{ };
|
||||
cocvim = pkgs.callPackage
|
||||
({ stdenv, elinks, nodejs }: stdenv.mkDerivation {
|
||||
name = "coc.vim";
|
||||
src = ./coc.vim;
|
||||
|
|
@ -18,9 +33,11 @@ in
|
|||
{
|
||||
programs.neovim = {
|
||||
extraConfig = ''
|
||||
source ${initvim}
|
||||
source ${cocvim}
|
||||
'';
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
nvim-treesitter
|
||||
coc-yaml
|
||||
coc-git
|
||||
coc-css
|
||||
|
|
|
|||
13
config/users/kat/dev/vim/init.vim
Normal file
13
config/users/kat/dev/vim/init.vim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
lua << EOF
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||
ignore_install = { }, -- List of parsers to ignore installing
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue