Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim plugin specific snippets #172538

Open
teto opened this issue May 11, 2022 · 0 comments
Open

vim plugin specific snippets #172538

teto opened this issue May 11, 2022 · 0 comments

Comments

@teto
Copy link
Member

teto commented May 11, 2022

Issue description

Some of the vim plugins need a specific vim configuration to work on nixos, we should add these to nixpkgs (via a passthru key) so that either
1/ users can reference these snippets e.g. in a home manager configuration:

      programs.neovim.plugins = [ {
        plugin = unicode-vim;
        config = pkgs.vimPlugins.unicode-vim.advisedSnippet; 
        # the advisedSnippet being: 
        # with "let g:Unicode_data_directory='${pkgs.vimPlugins.unicode-vim}/share/vim-plugins/unicode-vim/autoload/unicode'
      }

or
2/ the neovim wrapper can add these snippets to the init.vim / init.lua

The alternative of patching the plugin doesnt suit me as it makes bug reports harder and in case we dont patch correctly could taint the nixos reputation: it's best to generate a config that the user can then report to the vim plugin author.

An additionnal issue is that some plugins depend on treesitter grammars such as rest.nvim: without the grammer it triggers
no parser for 'http' language, see :help treesitter-parsers so we should be able to set that as a dependency

Here I want to collect such snippets until we agree on the proposition/naming:

  • unicode.vim needs:
let g:Unicode_data_directory='${pkgs.vimPlugins.unicode-vim}/autoload/unicode'
g.coq_settings.xdg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant