Neovim: use LazyVim
This commit is contained in:
parent
eac0729a0f
commit
c63062d2ae
13 changed files with 649 additions and 904 deletions
3
modules/editor/vim/lua/config/autocmds.lua
Normal file
3
modules/editor/vim/lua/config/autocmds.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
-- Add any additional autocmds here
|
||||
21
modules/editor/vim/lua/config/keymaps.lua
Normal file
21
modules/editor/vim/lua/config/keymaps.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
-- Windows
|
||||
map("n", "<leader>ww", "<C-w>p", { desc = "Other Window", remap = true })
|
||||
map("n", "<leader>wd", "<C-w>c", { desc = "Delete Window", remap = true })
|
||||
map("n", "<leader>ws", "<C-w>s", { desc = "Split Window Below", remap = true })
|
||||
map("n", "<leader>wv", "<C-w>v", { desc = "Split Window Right", remap = true })
|
||||
map("n", "<leader>wj", "<C-w>j", { desc = "Go to Lower Window", remap = true })
|
||||
map("n", "<leader>wk", "<C-w>k", { desc = "Go to Upper Window", remap = true })
|
||||
map("n", "<leader>wl", "<C-w>l", { desc = "Go to Right Window", remap = true })
|
||||
map("n", "<leader>wh", "<C-w>h", { desc = "Go to Left Window", remap = true })
|
||||
|
||||
-- File
|
||||
map("n", "<leader>fs", "<cmd>w<cr>", { desc = "Save File" })
|
||||
|
||||
-- Buffer
|
||||
map("n", "<leader>bk", LazyVim.ui.bufremove, { desc = "Delete Buffer" })
|
||||
3
modules/editor/vim/lua/config/options.lua
Normal file
3
modules/editor/vim/lua/config/options.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
9
modules/editor/vim/lua/plugins/core.lua
Normal file
9
modules/editor/vim/lua/plugins/core.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
{ "ellisonleao/gruvbox.nvim" },
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "gruvbox",
|
||||
}
|
||||
},
|
||||
}
|
||||
7
modules/editor/vim/lua/plugins/disabled.lua
Normal file
7
modules/editor/vim/lua/plugins/disabled.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
{ "folke/tokyonight.nvim", enabled = false },
|
||||
{ "catppuccin", enabled = false },
|
||||
{ "williamboman/mason.nvim", enabled = false },
|
||||
{ "williamboman/mason-lspconfig.nvim", enabled = false },
|
||||
{ "jay-babu/mason-nvim-dap.nvim", enabled = false },
|
||||
}
|
||||
15
modules/editor/vim/lua/plugins/neogit.lua
Normal file
15
modules/editor/vim/lua/plugins/neogit.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
{
|
||||
"NeogitOrg/neogit",
|
||||
dependencies = { "nvim-lua/plenary.nvim", "sindrets/diffview.nvim", "nvim-telescope/telescope.nvim" },
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{
|
||||
"<leader>gg",
|
||||
"<cmd>Neogit<cr>",
|
||||
desc = "Neogit",
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
},
|
||||
}
|
||||
36
modules/editor/vim/lua/plugins/nix.lua
Normal file
36
modules/editor/vim/lua/plugins/nix.lua
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
return {
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
nix = {
|
||||
"statix",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
nixd = {
|
||||
settings = {
|
||||
nixd = {
|
||||
formatting = {
|
||||
command = { "nixfmt" }
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
nix = { "nixpkgs-fmt" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
10
modules/editor/vim/lua/plugins/treesitter.lua
Normal file
10
modules/editor/vim/lua/plugins/treesitter.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
auto_install = false,
|
||||
ensure_installed = {},
|
||||
parser_install_dir = vim.fs.joinpath(vim.fn.stdpath('data'), 'site'),
|
||||
},
|
||||
},
|
||||
}
|
||||
18
modules/editor/vim/lua/plugins/yazi.lua
Normal file
18
modules/editor/vim/lua/plugins/yazi.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
{
|
||||
"mikavilpas/yazi.nvim",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{
|
||||
"<leader>.",
|
||||
function()
|
||||
require("yazi").yazi()
|
||||
end,
|
||||
desc = "Open the file manager",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
open_for_directories = true,
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue