Skip to content

Instantly share code, notes, and snippets.

@mandaputtra
Last active October 25, 2025 04:25
Show Gist options
  • Select an option

  • Save mandaputtra/11277ecae23975a64ba15c31139d9a89 to your computer and use it in GitHub Desktop.

Select an option

Save mandaputtra/11277ecae23975a64ba15c31139d9a89 to your computer and use it in GitHub Desktop.
My lvim configuration
return {
-- dashboard configurations
--
{
"vhyrro/luarocks.nvim",
priority = 1001, -- this plugin needs to run before anything else
opts = {
rocks = { "magick" },
},
},
{
"goolord/alpha-nvim",
opts = function()
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = {
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[  ]],
[[ ████ ██████ █████ ██ ]],
[[ ███████████ █████  ]],
[[ █████████ ███████████████████ ███ ███████████ ]],
[[ █████████ ███ █████████████ █████ ██████████████ ]],
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
[[ ]],
[[ ]],
[[ ]],
}
dashboard.section.buttons.val = {
dashboard.button("e", " > New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("f", " > Find file", ":Telescope find_files <CR>"),
dashboard.button("r", " > Recent", ":Telescope oldfiles <CR>"),
dashboard.button("s", " > Settings", ":e $MYVIMRC | :cd %:p:h | wincmd k | pwd <CR>"),
dashboard.button("q", " > Quit NVIM", ":qa <CR>"),
}
return dashboard
end,
},
--- Tree sitter
{
"nvim-treesitter/nvim-treesitter",
opts = {
highlight = { enable = true },
indent = { enable = true },
},
},
-- File exploler config
{ "nvim-neo-tree/neo-tree.nvim", opts = {
window = {
position = "right",
},
} },
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = {
-- highlight = { enable = true },
-- },
-- },
{
"mfussenegger/nvim-dap",
config = function() end,
},
-- Nvim notify
{
"folke/noice.nvim",
opts = {},
},
-- add themes
{ "ellisonleao/gruvbox.nvim" },
{ "rebelot/kanagawa.nvim" },
{
"LazyVim/LazyVim",
opts = {
colorscheme = "kanagawa-wave",
},
},
-- add pyright to lspconfig
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
-- Inlay Hints
inlay_hints = {
enabled = false,
},
},
},
-- change trouble config
{
"folke/trouble.nvim",
-- opts will be merged with the parent spec
opts = { use_diagnostic_signs = false },
},
-- Neovim images
{
"3rd/image.nvim",
opts = {
backend = "kitty",
},
},
-- MASON LSP Workaround
-- { "mason-org/mason.nvim", version = "^1.0.0" },
-- { "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
-- LAZY VIM
{ "tpope/vim-fugitive" },
-- AI Copilot
{
"olimorris/codecompanion.nvim",
lazy = false,
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"hrsh7th/nvim-cmp",
"nvim-telescope/telescope.nvim",
},
config = function()
require("codecompanion").setup({
adapters = {
gemini = function()
return require("codecompanion.adapters").extend("gemini", {
name = "gemini",
schema = {
model = {
default = "gemini-2.5-flash",
},
},
})
end,
llama3 = function()
return require("codecompanion.adapters").extend("ollama", {
name = "llama3", -- Give this adapter a different name to differentiate it from the default ollama adapter
schema = {
model = {
default = "phi3:3.8b-mini-4k-instruct-q6_K",
},
num_ctx = {
default = 4096,
},
num_predict = {
default = -1,
},
},
})
end,
},
strategies = {
chat = {
adapter = "gemini",
},
inline = {
adapter = "gemini",
},
agent = {
adapter = "gemini",
model = "gemini-2.5-pro",
},
},
display = {
chat = {
window = {
layout = "vertical", -- float|vertical|horizontal|buffer
},
},
},
opts = {},
})
end,
init = function() end,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment