Skip to content

plugin for nvim that works with my dsa scripts

Notifications You must be signed in to change notification settings

cjon256/dsa.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

nvim plugin to work with my leetcode-cli/cargo-leet setup

This lets me use neovim to work with my leetcode-cli/cargo-leet setup. Not really intended for public use, but if you want to use it, go ahead.

Load with Lazy.nvim

    {
        'cjon256/dsa.nvim',
        config = function()
            require('dsa').setup()
        end,
    },

And set up some keybinds like:

keymap('n', '<leader>lp', ':LeetPy<Space>', { desc = 'pyleet open problem' })
keymap('n', '<leader>lg', ':LeetGo<Space>', { desc = 'goleet open problem' })
keymap('n', '<leader>lr', ':LeetRust<Space>', { desc = 'rsleet open problem' })
keymap('n', '<leader>lt', '<CMD>LeetTest<CR>', { desc = 'leetcode test runner' })
keymap('n', '<leader>lx', '<CMD>LeetSubmit<CR>', { desc = 'leetcode submit runner' })
keymap('n', '<leader>ln', '<CMD>LeetNext<CR>', { desc = 'leetcode next problem' })
keymap('n', '<leader>lo', '<CMD>LeetOpen<CR>', { desc = 'open leetcode page' })

This will only be useable with my leetcode setup, but enables working through problems quite quickly with testing set up fairly well and low friction.

About

plugin for nvim that works with my dsa scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages