kawre / leetcode.nvim

A Neovim plugin enabling you to solve LeetCode problems.
MIT License
1.05k stars 45 forks source link

Unable to open plugin #56

Closed Rasmus105 closed 8 months ago

Rasmus105 commented 8 months ago

Problem

I am unable to open the plugin. I've tried both nvim leetcode.nvim in the terminal, as well as :Leet in neovim.

What i've tried

I've thought it might be the barbar.nvim plugin that was giving me trouble, so i tried removing that.

Files

Packer file:

vim.cmd [[packadd packer.nvim]]

return require('packer').startup(function(use)
    -- Packer can manage itself
    use 'wbthomason/packer.nvim'
    use {
        'nvim-telescope/telescope.nvim', tag = '0.1.5',
        requires = {
            'duane9/nvim-rg',
            'nvim-lua/plenary.nvim'
        }
    }
    use {
        'nvim-telescope/telescope-file-browser.nvim', -- not working for some reason
        requires = {
            "nvim-telescope/telescope.nvim",
            "nvim-lua/plenary.nvim"
        }
    }
    use {
        "ellisonleao/gruvbox.nvim"
    }
    use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
    use('nvim-treesitter/playground')
    use {
        'VonHeikemen/lsp-zero.nvim',
        branch = 'v3.x',
        requires = {

            -- LSP Support
            {"williamboman/mason.nvim",},
            {"williamboman/mason-lspconfig.nvim"},
            {"neovim/nvim-lspconfig"},
            {'neovim/nvim-lspconfig'},
            -- Autocompletion
            {'hrsh7th/nvim-cmp'},
            {'hrsh7th/cmp-buffer'},
            {'hrsh7th/cmp-path'},
            {'hrsh7th/cmp-cmdline'},
            {'hrsh7th/cmp-nvim-lsp'},

            {'L3MON4D3/LuaSnip'},
            {'rafamadriz/friendly-snippets'},
        }
    }
    use {
        'mfussenegger/nvim-dap',
        'rcarriga/nvim-dap-ui',
        'theHamsta/nvim-dap-virtual-text',
        'leoluz/nvim-dap-go',
    }
    use {
        'nvim-lualine/lualine.nvim',
        requires = { 'nvim-tree/nvim-web-devicons', opt = true }
    }
    use {
        'numToStr/Comment.nvim',
        config = function()
            require('Comment').setup()
        end
    }
    -- Lua
    use {
        "folke/which-key.nvim",
        config = function()
            vim.o.timeout = true
            vim.o.timeoutlen = 300
            require("which-key").setup {
            }
        end
    }
    use {
        "windwp/nvim-autopairs",
        config = function() require("nvim-autopairs").setup {} end
    }
    use {
        'romgrk/barbar.nvim',
        'lewis6991/gitsigns.nvim',
        'nvim-tree/nvim-web-devicons',
    }
    use {
        'WhoIsSethDaniel/toggle-lsp-diagnostics.nvim',
    }
    use {
        'kawre/leetcode.nvim', {run=":TSUpdate html"},
        requires = {
            'nvim-telescope/telescope.nvim',
            'nvim-lua/plenary.nvim',
            'MunifTanjim/nui.nvim',

            -- optional
            -- 'nvim-treesitter/nvim-treesitter',
            -- 'rcarriga/nvim-notify',
            -- 'nvim-tree/nvim-web-devicons'
        }
    }
end)
kawre commented 8 months ago

You need to setup the plugin with require("leetcode").setup()

Rasmus105 commented 8 months ago

Of course. Sorry, don't know how i could've overlooked that.

Thanks for the help, and for the great plugin!