Skip to content

Commit 8c3e1fb

Browse files
committed
add lazyvim config
1 parent e2b0c4b commit 8c3e1fb

35 files changed

+725
-0
lines changed

config/nvim/.neoconf.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"neodev": {
3+
"library": {
4+
"enabled": true,
5+
"plugins": true
6+
}
7+
},
8+
"neoconf": {
9+
"plugins": {
10+
"lua_ls": {
11+
"enabled": true
12+
}
13+
}
14+
}
15+
}

config/nvim/.stylua.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
column_width = 100
2+
line_endings = "Unix"
3+
indent_type = "Spaces"
4+
indent_width = 4
5+
quote_style = "AutoPreferDouble"
6+
call_parentheses = "None"

config/nvim/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# KoalaVim
2+
3+
/'--.._ `'-="""=-'` _..--'\
4+
| ~. ) _ _ ( .~ |
5+
\ '~/ a _ a \~' /
6+
\ `| / \ |` /
7+
`'--\ \_/ /--'`
8+
.'._ J__.-'.
9+
/ / '-/_ `- \
10+
/ -"-'-. '-.__/
11+
\__,-.\/ | `\
12+
/ ;---. .--' |
13+
| /\'-' /
14+
'.___.\ _.--;'`)
15+
_ __ _ __ _____ __ __-
16+
| |/ /___ __ _| | __ \ \ / /_ _| \/ |
17+
| ' // _ \ / _` | |/ _` \ \ / / | || |\/| |
18+
| . \ (_) | (_| | | (_| |\ V / | || | | |
19+
|_|\_\___/ \__,_|_|\__,_| \_/ |___|_| |_|
20+
21+
My Neovim Config based on [lazyvim](https://github.com/LazyVim/LazyVim)

config/nvim/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- bootstrap lazy.nvim, LazyVim and your plugins
2+
require("config.lazy")

config/nvim/lazyvim.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extras": [
3+
"lazyvim.plugins.extras.coding.luasnip",
4+
"lazyvim.plugins.extras.coding.mini-comment",
5+
"lazyvim.plugins.extras.coding.mini-surround",
6+
"lazyvim.plugins.extras.editor.dial",
7+
"lazyvim.plugins.extras.editor.harpoon2",
8+
"lazyvim.plugins.extras.formatting.prettier",
9+
"lazyvim.plugins.extras.lang.ansible",
10+
"lazyvim.plugins.extras.lang.astro",
11+
"lazyvim.plugins.extras.lang.docker",
12+
"lazyvim.plugins.extras.lang.git",
13+
"lazyvim.plugins.extras.lang.json",
14+
"lazyvim.plugins.extras.lang.python",
15+
"lazyvim.plugins.extras.lang.tailwind",
16+
"lazyvim.plugins.extras.lang.toml",
17+
"lazyvim.plugins.extras.lang.typescript",
18+
"lazyvim.plugins.extras.lang.yaml",
19+
"lazyvim.plugins.extras.linting.eslint",
20+
"lazyvim.plugins.extras.ui.treesitter-context",
21+
"lazyvim.plugins.extras.util.chezmoi",
22+
"lazyvim.plugins.extras.util.dot",
23+
"lazyvim.plugins.extras.util.mini-hipatterns",
24+
"lazyvim.plugins.extras.util.startuptime"
25+
],
26+
"news": {
27+
"NEWS.md": "6520"
28+
},
29+
"version": 6
30+
}

config/nvim/lua/config/autocmds.lua

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Autocmds are automatically loaded on the VeryLazy event
2+
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
3+
-- Add any additional autocmds here

config/nvim/lua/config/keymaps.lua

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Keymaps are automatically loaded on the VeryLazy event
2+
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
3+
-- Add any additional keymaps here

config/nvim/lua/config/lazy.lua

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
3+
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
4+
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
5+
if vim.v.shell_error ~= 0 then
6+
vim.api.nvim_echo({
7+
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
8+
{ out, "WarningMsg" },
9+
{ "\nPress any key to exit..." },
10+
}, true, {})
11+
vim.fn.getchar()
12+
os.exit(1)
13+
end
14+
end
15+
vim.opt.rtp:prepend(lazypath)
16+
17+
require("lazy").setup({
18+
spec = {
19+
-- add LazyVim and import its plugins
20+
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
21+
-- import/override with your plugins
22+
{ import = "plugins" },
23+
},
24+
defaults = {
25+
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
26+
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
27+
lazy = false,
28+
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
29+
-- have outdated releases, which may break your Neovim install.
30+
version = false, -- always use the latest git commit
31+
-- version = "*", -- try installing the latest stable version for plugins that support semver
32+
},
33+
install = { colorscheme = { "tokyonight", "habamax" } },
34+
checker = {
35+
enabled = true, -- check for plugin updates periodically
36+
notify = false, -- notify on update
37+
}, -- automatically check for plugin updates
38+
performance = {
39+
rtp = {
40+
-- disable some rtp plugins
41+
disabled_plugins = {
42+
"gzip",
43+
-- "matchit",
44+
-- "matchparen",
45+
-- "netrwPlugin",
46+
"tarPlugin",
47+
"tohtml",
48+
"tutor",
49+
"zipPlugin",
50+
},
51+
},
52+
},
53+
})

config/nvim/lua/config/options.lua

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Options are automatically loaded before lazy.nvim startup
2+
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
3+
-- Add any additional options here
4+
-- -- If no prettier config file is found, the formatter will not be used
5+
vim.g.lazyvim_prettier_needs_config = false
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
return {
2+
"antonk52/bad-practices.nvim",
3+
enabled = false,
4+
event = "VeryLazy",
5+
config = function()
6+
require("bad_practices").setup({
7+
most_splits = 3,
8+
most_tabs = 3,
9+
max_hjkl = 10,
10+
})
11+
end,
12+
}

config/nvim/lua/plugins/cmp.lua

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
return {
2+
"hrsh7th/nvim-cmp",
3+
dependencies = { "hrsh7th/cmp-emoji", name = "codeium" },
4+
}

config/nvim/lua/plugins/codeium.lua

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
return {
2+
"Exafunction/codeium.nvim",
3+
dependencies = {
4+
"nvim-lua/plenary.nvim",
5+
"hrsh7th/nvim-cmp",
6+
},
7+
config = function()
8+
require("codeium").setup({})
9+
end,
10+
}
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
return {
2+
{ "scottmckendry/cyberdream.nvim", opts = {
3+
transparent = true,
4+
} },
5+
{
6+
"catppuccin/nvim",
7+
lazy = true,
8+
name = "catppuccin",
9+
opts = {
10+
transparent_background = true,
11+
integrations = {
12+
aerial = true,
13+
alpha = true,
14+
cmp = true,
15+
dashboard = true,
16+
flash = true,
17+
grug_far = true,
18+
gitsigns = true,
19+
headlines = true,
20+
illuminate = true,
21+
indent_blankline = { enabled = true },
22+
leap = true,
23+
lsp_trouble = true,
24+
mason = true,
25+
markdown = true,
26+
mini = true,
27+
native_lsp = {
28+
enabled = true,
29+
underlines = {
30+
errors = { "undercurl" },
31+
hints = { "undercurl" },
32+
warnings = { "undercurl" },
33+
information = { "undercurl" },
34+
},
35+
},
36+
navic = { enabled = true, custom_bg = "lualine" },
37+
neotest = true,
38+
neotree = true,
39+
noice = true,
40+
notify = true,
41+
semantic_tokens = true,
42+
telescope = true,
43+
treesitter = true,
44+
treesitter_context = true,
45+
which_key = true,
46+
},
47+
},
48+
},
49+
{
50+
"mellow-theme/mellow.nvim",
51+
},
52+
{ "nyoom-engineering/oxocarbon.nvim" },
53+
{
54+
"LazyVim/LazyVim",
55+
opts = {
56+
colorscheme = "catppuccin",
57+
},
58+
},
59+
}

config/nvim/lua/plugins/conform.lua

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
return {
2+
"stevearc/conform.nvim",
3+
lazy = true,
4+
opts = function()
5+
local opts = {
6+
formatters_by_ft = {
7+
lua = { "stylua" },
8+
python = { "ruff" },
9+
javascript = { "prettier" },
10+
typescript = { "prettier" },
11+
javascriptreact = { "prettier" },
12+
typescriptreact = { "prettier" },
13+
css = { "prettier" },
14+
html = { "prettier" },
15+
json = { "prettier" },
16+
yaml = { "prettier" },
17+
markdown = { "prettier" },
18+
graphql = { "prettier" },
19+
},
20+
}
21+
return opts
22+
end,
23+
}

0 commit comments

Comments
 (0)