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

Switching to init.lua completely broke nixvim #65

Closed
gilice opened this issue Nov 7, 2022 · 3 comments
Closed

Switching to init.lua completely broke nixvim #65

gilice opened this issue Nov 7, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gilice
Copy link

gilice commented Nov 7, 2022

Plugin affected: *
Nixpkgs channel: unstable
Home-manager version: master

Description

Before 3849a1d, everything seemed fine. Now, the generated init.lua is 10 lines long, filled with 10 empty lines.

Config

  programs.nixvim = {

    enable = true;
    colorschemes.gruvbox = {
      enable = true;
      contrastLight = "hard";
      contrastDark = "hard";
    };

    options = {
      number = true;
      shiftwidth = 2;
      tabstop = 2;
      guifont = "FiraCode\ Nerd\ Font\ Mono:h14";
    };

    plugins = {
      lsp = {
        enable = true;
        servers.rnix-lsp.enable = true;
        servers.rust-analyzer.enable = true;
        servers.jsonls.enable = true;
      };

      nvim-tree = {
        enable = true;
        openOnSetup = true;
        openOnTab = true;
      };

      telescope = {
        enable = true;
      };

      nvim-cmp = {
        formatting = {
          format = ''
            					require("lspkind").cmp_format({
            						mode="symbol",
            						maxwidth = 50,
            						ellipsis_char = "..."
            					})
            					'';
        };

        auto_enable_sources = true;
        snippet = {
          expand = ''
            	   function(args)
            	     require("luasnip").lsp_expand(args.body)
            	   end
            	 '';
        };
        enable = true;
        sources = [
          { name = "nvim_lsp"; }
          {
            name = "luasnip";
            option = {
              show_autosnippets = true;
            };
          }
          { name = "path"; }
          { name = "buffer"; }
        ];

      };
      barbar.enable = true;
    };

    globals.mapleader = " ";
    extraPlugins = with pkgs.vimPlugins; [
      which-key-nvim
      leap-nvim
      vim-flutter
      plenary-nvim
      fidget-nvim
      luasnip
      lspkind-nvim
    ];

    extraConfigLua = (builtins.readFile ./nvim-extra-lua.lua);
  };
}
@gilice gilice added the bug Something isn't working label Nov 7, 2022
@pta2002
Copy link
Collaborator

pta2002 commented Nov 8, 2022

Oh god D: I'll try to fix this asap

@pta2002 pta2002 self-assigned this Nov 8, 2022
@pta2002
Copy link
Collaborator

pta2002 commented Nov 8, 2022

Should(?) be fixed! Can you try it @gilice?

@pta2002 pta2002 closed this as completed in 1a89cd2 Nov 8, 2022
@gilice
Copy link
Author

gilice commented Nov 8, 2022

seems fine. thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants