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
1. Try it out
1.1. Nix
1.2. Tidal
1.3. Maximal
1.4. Using Prebuilt Configs
2. Default Configs
2.1. Tidal Cycles
2.2. Nix
2.3. Maximal
3. Custom Configuration
4. Home Manager
5. Language Support
A. Configuration Options
B. Release Notes
B.1. Release 0.1
B.1.1. Changelog
B.2. Release 0.2
B.2.1. Changelog
B.3. Release 0.3
B.3.1. Changelog

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.