From 7bc4db71c42c13b2a519b3364a183623dab3b7f5 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 5 Jun 2023 23:53:45 +0000 Subject: [PATCH] deploy: c38a152d2d1d57324cd06ed31256700f5f3dde9a --- index.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 54da10a..30499e0 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -neovim-flake Manual

neovim-flake Manual


Preface

+neovim-flake Manual

Chapter 5. Language Support

Language specific support means there is a combination of language specific plugins, treesitter support, nvim-lspconfig language servers, and null-ls integration. This gets you capabilities ranging from autocompletion to formatting to diagnostics. The following languages have sections under the vim.languages attribute. See the configuration docs for details.

  • +}

    4.1. Custom vim plugins

    It’s possible to add custom vim plugins by using the startPlugins and lua DAG settings. First we install the plugin by adding it to startPlugins. This example uses nvim-surround, but the process will be similar for other plugins as well.

    {
    +  programs.neovim-flake = {
    +    enable = true;
    +    settings = {
    +      vim.startPlugins = [ pkgs.vimPlugins.nvim-surround ];
    +    };
    +  };
    +}

    Then we continue by requiring the plugin in lua using DAG settings. Please note that you’re able to name this setting to however you want, the name will add a --SECTION <name> in the init.vim, under which it will be initialized.

    {
    +  programs.neovim-flake = {
    +    enable = true;
    +    settings = {
    +      vim.startPlugins = [ pkgs.vimPlugins.nvim-surround ];
    +      luaConfigRC.nvim-surround = nvim-flake.lib.nvim.dag.entryAnywhere '' # nvim-flake is a reference to the flake. Please change this accordingly to your config.
    +        require("nvim-surround").setup()
    +      '';
    +    };
    +  };
    +}

Chapter 5. Language Support

Language specific support means there is a combination of language specific plugins, treesitter support, nvim-lspconfig language servers, and null-ls integration. This gets you capabilities ranging from autocompletion to formatting to diagnostics. The following languages have sections under the vim.languages attribute. See the configuration docs for details.