mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-30 22:57:54 +00:00
nvim: update custom theme and generic config
This commit is contained in:
parent
2c5586fbfd
commit
56541bae23
@ -3,7 +3,7 @@
|
|||||||
-- Bootstrapping for the package manager
|
-- Bootstrapping for the package manager
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
local out = vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
@ -11,6 +11,15 @@ if not vim.loop.fs_stat(lazypath) then
|
|||||||
"--branch=stable", -- latest stable release
|
"--branch=stable", -- latest stable release
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
vim.api.nvim_echo({
|
||||||
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
|
{ out, "WarningMsg" },
|
||||||
|
{ "\nPress any key to exit." },
|
||||||
|
}, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
@ -394,5 +394,9 @@ return lush(function()
|
|||||||
|
|
||||||
-- Indent-Blank-Lines
|
-- Indent-Blank-Lines
|
||||||
IndentGuide({ fg = base01, bg = base05 }),
|
IndentGuide({ fg = base01, bg = base05 }),
|
||||||
|
|
||||||
|
-- snacks.nvim
|
||||||
|
SnacksIndentScope({ fg = base0C, gui = "bold" }),
|
||||||
|
SnacksIndentChunk({ fg = base0C, gui = "bold" }),
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
@ -17,7 +17,7 @@ function module.setup()
|
|||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.opt.conceallevel = 1
|
vim.opt.conceallevel = 1
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
vim.opt.listchars = { tab = "↦ ", trail = "·" }
|
vim.opt.listchars = { tab = "↦ ", trail = "·" }
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
|
||||||
@ -28,10 +28,13 @@ function module.setup()
|
|||||||
vim.cmd("highlight clear SpellRare")
|
vim.cmd("highlight clear SpellRare")
|
||||||
vim.cmd("highlight Visual term=reverse cterm=reverse")
|
vim.cmd("highlight Visual term=reverse cterm=reverse")
|
||||||
|
|
||||||
-- Keybindings
|
-- Basic keybindings
|
||||||
vim.keymap.set("n", "<leader>bd", ":bd<cr>", {})
|
vim.keymap.set("n", "<leader>bd", ":bd<cr>", {})
|
||||||
vim.keymap.set("i", "jk", "<Esc>", {})
|
vim.keymap.set("i", "jk", "<Esc>", { desc = "Escape" })
|
||||||
vim.keymap.set("n", "<leader>hr", "<cmd>source $MYVIMRC<cr>", {})
|
vim.keymap.set("n", "<leader>hr", "<cmd>source $MYVIMRC<cr>", {})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>x", ":.lua<CR>", { desc = "Execute Lua under cursor" })
|
||||||
|
vim.keymap.set("v", "<leader>x", ":lua<CR>", { desc = "Execute Lua under cursor" })
|
||||||
end
|
end
|
||||||
|
|
||||||
return module
|
return module
|
||||||
|
Loading…
Reference in New Issue
Block a user