Skip to content

Commit 8fd1a56

Browse files
committed
feat!: move to lazyvim
1 parent 120a6ef commit 8fd1a56

File tree

17 files changed

+399
-992
lines changed

17 files changed

+399
-992
lines changed
+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")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"LazyVim": { "branch": "main", "commit": "447e260a62ffd50b0113c20db0e63108baf44b44" },
3+
"SchemaStore.nvim": { "branch": "main", "commit": "bb03860b59f17dfada46d6d9563c48b7b12fecaf" },
4+
"blink.cmp": { "branch": "main", "commit": "ae5a4ce8f7e519e49de7ae6fcadd74547f820a52" },
5+
"bufferline.nvim": { "branch": "main", "commit": "261a72b90d6db4ed8014f7bda976bcdc9dd7ce76" },
6+
"catppuccin": { "branch": "main", "commit": "faf15ab0201b564b6368ffa47b56feefc92ce3f4" },
7+
"conform.nvim": { "branch": "master", "commit": "f4e8837878fc5712d053ba3091a73d27d96a09e2" },
8+
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
9+
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
10+
"fzf-lua": { "branch": "main", "commit": "8e6a1e9f92b531ee965db4713c0227aeb37b4a22" },
11+
"gitsigns.nvim": { "branch": "main", "commit": "5f808b5e4fef30bd8aca1b803b4e555da07fc412" },
12+
"grug-far.nvim": { "branch": "main", "commit": "11d0fbd6fff6f4e394af95319deeaab4ef88ce97" },
13+
"lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" },
14+
"lazydev.nvim": { "branch": "main", "commit": "f59bd14a852ca43db38e3662395354cb2a9b13e0" },
15+
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
16+
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
17+
"mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" },
18+
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
19+
"mini.ai": { "branch": "main", "commit": "ebb04799794a7f94628153991e6334c3304961b8" },
20+
"mini.comment": { "branch": "main", "commit": "a56581c40c19fa26f2b39da72504398de3173c5a" },
21+
"mini.icons": { "branch": "main", "commit": "44c0160526f7ae17ca8e8eab9ab235d047fcf7a6" },
22+
"mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" },
23+
"mini.surround": { "branch": "main", "commit": "aa5e245829dd12d8ff0c96ef11da28681d6049aa" },
24+
"neo-tree.nvim": { "branch": "main", "commit": "d7266e467de1adbaf775cbd4bff9b68842e27386" },
25+
"noice.nvim": { "branch": "main", "commit": "eaed6cc9c06aa2013b5255349e4f26a6b17ab70f" },
26+
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
27+
"nvim-lint": { "branch": "master", "commit": "1fea92f1d9908eaa5eb8bafe08b4293d7aadaa55" },
28+
"nvim-lspconfig": { "branch": "master", "commit": "040001d85e9190a904d0e35ef5774633e14d8475" },
29+
"nvim-treesitter": { "branch": "master", "commit": "fa915a30c5cdf1d18129e9ef6ac2ee0fa799904f" },
30+
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
31+
"nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" },
32+
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
33+
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
34+
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
35+
"render-markdown.nvim": { "branch": "main", "commit": "0022a579ac7355966be5ade77699b88c76b6a549" },
36+
"snacks.nvim": { "branch": "main", "commit": "9563bb1ffc890abf35341561ea2362b9ac51da04" },
37+
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
38+
"tokyonight.nvim": { "branch": "main", "commit": "45d22cf0e1b93476d3b6d362d720412b3d34465c" },
39+
"trouble.nvim": { "branch": "main", "commit": "46cf952fc115f4c2b98d4e208ed1e2dce08c9bf6" },
40+
"ts-comments.nvim": { "branch": "main", "commit": "872dcfa0418f4a33b7437fb4d9f4e89f2f000d74" },
41+
"vim-better-whitespace": { "branch": "master", "commit": "86a0579b330b133b8181b8e088943e81c26a809e" },
42+
"vim-dirdiff": { "branch": "master", "commit": "84bc8999fde4b3c2d8b228b560278ab30c7ea4c9" },
43+
"vim-terramate": { "branch": "main", "commit": "072a376f02fd60e5e542fadd83259e9c17c400b0" },
44+
"vim-titlecase": { "branch": "master", "commit": "69a697c54a08ca5603cb757b4d4f78cd4b567549" },
45+
"which-key.nvim": { "branch": "main", "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" }
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extras": [
3+
"lazyvim.plugins.extras.coding.mini-comment",
4+
"lazyvim.plugins.extras.coding.mini-surround",
5+
"lazyvim.plugins.extras.formatting.black",
6+
"lazyvim.plugins.extras.formatting.prettier",
7+
"lazyvim.plugins.extras.lang.docker",
8+
"lazyvim.plugins.extras.lang.json",
9+
"lazyvim.plugins.extras.lang.markdown",
10+
"lazyvim.plugins.extras.lang.python",
11+
"lazyvim.plugins.extras.lang.terraform",
12+
"lazyvim.plugins.extras.lang.yaml",
13+
"lazyvim.plugins.extras.util.dot"
14+
],
15+
"news": {
16+
"NEWS.md": "10960"
17+
},
18+
"version": 7
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Default: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
2+
3+
-- Disable autoformat for Dockerfiles
4+
vim.api.nvim_create_autocmd({ "FileType" }, {
5+
pattern = { "dockerfile" },
6+
callback = function()
7+
vim.b.autoformat = false
8+
end,
9+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Default: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
2+
3+
local map = vim.keymap.set
4+
5+
map({ "n" }, "o", "o<Esc>")
6+
map({ "n" }, "O", "O<Esc>")
7+
8+
map({ "n" }, "<leader><leader>", "<cmd>nohlsearch<cr>")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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
26+
-- plugins will load during startup. If you know what you're doing, you can
27+
-- set this to `true` to have all your custom plugins lazy-loaded by
28+
-- default.
29+
lazy = false,
30+
-- It's recommended to leave version=false for now, since a lot the plugin
31+
-- that support versioning, have outdated releases, which may break your
32+
-- Neovim install.
33+
version = false, -- always use the latest git commit
34+
},
35+
install = { colorscheme = { "tokyonight", "habamax" } },
36+
checker = {
37+
enabled = true, -- check for plugin updates periodically
38+
notify = false, -- notify on update
39+
}, -- automatically check for plugin updates
40+
performance = {
41+
rtp = {
42+
-- disable some rtp plugins
43+
disabled_plugins = {
44+
"gzip",
45+
"matchit",
46+
"matchparen",
47+
"netrwPlugin",
48+
"tarPlugin",
49+
"tohtml",
50+
"tutor",
51+
"zipPlugin",
52+
},
53+
},
54+
},
55+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Default: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
2+
3+
vim.g.snacks_animate = false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
return {
2+
-- disable "bad" defaults:
3+
{ "folke/flash.nvim", enabled = false },
4+
{ "mfussenegger/nvim-lint", enabled = false },
5+
{ "ibhagwan/fzf-lua", keys = { { "<leader><space>", false } } },
6+
{
7+
"echasnovski/mini.surround",
8+
opts = {
9+
mappings = {
10+
add = "ys",
11+
delete = "ds",
12+
replace = "cs",
13+
},
14+
},
15+
},
16+
-- customize defaults:
17+
{
18+
"neovim/nvim-lspconfig",
19+
opts = {
20+
servers = {
21+
-- prevent ls spam in huge monorepos
22+
terraformls = { cmd = { "terraform-ls", "serve", "-log-file", "/dev/null" } },
23+
},
24+
},
25+
},
26+
{
27+
"saghen/blink.cmp",
28+
opts = {
29+
keymap = {
30+
["<C-j>"] = { "select_next" },
31+
["<C-k>"] = { "select_prev" },
32+
},
33+
},
34+
},
35+
{
36+
"echasnovski/mini.comment",
37+
event = "VeryLazy",
38+
opts = {
39+
mappings = {
40+
comment = "<leader>/",
41+
comment_line = "<leader>/",
42+
comment_visual = "<leader>/",
43+
},
44+
},
45+
},
46+
{
47+
-- custom formatter for terramate
48+
"stevearc/conform.nvim",
49+
opts = {
50+
formatters_by_ft = {
51+
terramate = { "terramate" },
52+
},
53+
formatters = {
54+
terramate = {
55+
command = "terramate",
56+
args = { "fmt", "$FILENAME" },
57+
stdin = false,
58+
exit_codes = { 0 },
59+
},
60+
},
61+
},
62+
},
63+
-- custom plugins:
64+
{ "terramate-io/vim-terramate" },
65+
{ "christoomey/vim-titlecase" },
66+
{
67+
"ntpeters/vim-better-whitespace",
68+
event = { "BufReadPost", "BufNewFile" },
69+
config = function()
70+
vim.g.strip_whitespace_on_save = 1
71+
vim.g.better_whitespace_filetypes_blacklist = {
72+
"lazy",
73+
"diff",
74+
"git",
75+
"gitcommit",
76+
"help",
77+
"snacks_dashboard",
78+
}
79+
end,
80+
},
81+
{
82+
"will133/vim-dirdiff",
83+
cmd = "DirDiff",
84+
config = function()
85+
vim.api.nvim_create_autocmd("FileType", {
86+
pattern = "dirdiff",
87+
callback = function()
88+
vim.bo.filetype = "diff"
89+
end,
90+
})
91+
end,
92+
},
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
indent_type = "Spaces"
2+
indent_width = 2
3+
column_width = 120

config/private_dot_config/private_fish/conf.d/alias.fish.tmpl

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ alias pbcopy 'xclip -selection clipboard'
1212
alias pbpaste 'xclip -selection clipboard -o'
1313
{{- end }}
1414

15-
# lunarvim
1615
alias vim nvim
1716
alias vi nvim
1817

0 commit comments

Comments
 (0)