Skip to content

User Configs

Latest

Choose a tag to compare

@2KAbhishek 2KAbhishek released this 19 Jan 01:06
· 273 commits to main since this release

nvim2k 1.0 (2025-01-19)

This is the first actual release of nvim2k, marking the first stable version of the project.

It is now ready for use by developers with the recent improvements to user config in #32

User Module Support

To use custom configs create the file lua/user/init.lua in nvim2k, with the following structure:

-- lua/user/init.lua
local user = {
    auto_install = true, -- enable auto install of LSPs, Treesitter parsers etc.
    user_lsp_servers = {
        -- Auto installed LSPs defined by user
    },
    user_null_ls_sources = {
        -- Auto installed Null LS sources defined by user
    },
    user_treesitter_parsers = {
        -- Auto installed Treesitter parsers defined by user
    },

    enable_db_explorer = false, -- enable dbee.nvim support
    enable_debugger = false, -- enable dap.nvim support
    enable_test_runner = false, -- enable neotest.nvim support
    enable_trainer = false, -- enable hardtime.nvim support
    user_plugins = {
        -- Add your lazy plugin spec here
    },

    user_keybindings = {
        -- Add your which-key bindings here
    }
}

return user

You can add and require any other custom modules and configurations you want in this file.

user module is not part of the repo, you can set up user module as a separate git repository while continuing to receive nvim2k updates.