mirror of https://github.com/LazyVim/starter
<no value>
parent
dfc2ef548f
commit
4d37508865
|
@ -17,7 +17,7 @@
|
|||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "4c2cdc69d69fe00c15ae8648f7e954d99e5de3ea" },
|
||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
||||
"mini.ai": { "branch": "main", "commit": "b91997d220086e92edc1fec5ce82094dcc234291" },
|
||||
"mini.ai": { "branch": "main", "commit": "7f1fe86277f0e977642cf8fe15f004229f61e61a" },
|
||||
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
||||
"mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" },
|
||||
"mini.surround": { "branch": "main", "commit": "5aab42fcdcf31fa010f012771eda5631c077840a" },
|
||||
|
@ -34,7 +34,7 @@
|
|||
"nvim-lspconfig": { "branch": "master", "commit": "d45702594afc661a9dfa95e96acf18c56006d4d9" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "153a076598076bf5664ab868fb01d3418ecffce9" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "ed1cf48d5af252248c55f50b9427e8ce883a2c6b" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "0f051e9813a36481f48ca1f833897210dbcfffde" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
|
||||
"persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
|
||||
|
@ -51,6 +51,7 @@
|
|||
"ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" },
|
||||
"undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" },
|
||||
"venv-selector.nvim": { "branch": "regexp", "commit": "c677caa1030808a9f90092e522de7cc20c1390dd" },
|
||||
"vim-overleaf": { "branch": "main", "commit": "4a173667a4edcaa595711dcaeb424b775506af8a" },
|
||||
"vimtex": { "branch": "master", "commit": "08760834ce04903deb6f8760e61c11cf6f6b2f89" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" },
|
||||
"yanky.nvim": { "branch": "main", "commit": "04775cc6e10ef038c397c407bc17f00a2f52b378" }
|
||||
|
|
|
@ -13,6 +13,9 @@ local function map_all_mode(lhs, rhs, opts)
|
|||
vim.keymap.set("t", lhs, rhs, opts)
|
||||
end
|
||||
-- TODO: make this work
|
||||
-- vim.keymap.set("v", "<BS>", function()
|
||||
-- vim.print("Pressed"); vim.cmd('d _<CR>')
|
||||
-- end, { noremap = true, desc = "Backspace in normal mode" })
|
||||
vim.keymap.set("v", "x", '"_x', { noremap = true, desc = "Delete selection with Backspace" })
|
||||
map_all_mode("<F5>", function()
|
||||
require("dap").continue()
|
||||
|
@ -41,18 +44,10 @@ end, { desc = "Print variable (Hover Mode)" })
|
|||
vim.keymap.set({ "n", "v" }, "\\dp", function()
|
||||
require("dap.ui.widgets").preview()
|
||||
end, { desc = "Print variable (Preview Mode)" })
|
||||
-- TODO: remove this
|
||||
-- vim.keymap.set("n", "\\dt", function()
|
||||
-- require("dapui").toggle()
|
||||
-- end, { desc = "Toggle debug GUI" })
|
||||
-- vim.keymap.set({ "n", "v" }, "\\de", function()
|
||||
-- require("dapui").eval()
|
||||
-- end, { desc = "Eval variable" })
|
||||
|
||||
-- Now configure shortcuts for MacOS
|
||||
-- if vim.g.neovide then
|
||||
vim.keymap.set("n", "<D-s>", ":w<CR>") -- Save
|
||||
vim.keymap.set("i", "<D-s>", "<C-O>:w<CR>")
|
||||
map_all_mode("<D-s>", '<Cmd>w<CR>') -- Save
|
||||
map_all_mode("<D-w>", function()
|
||||
local success, _ = pcall(function() vim.cmd('tabclose') end)
|
||||
if not success then
|
||||
|
@ -60,16 +55,14 @@ map_all_mode("<D-w>", function()
|
|||
end
|
||||
end, { desc = "Close current tab" })
|
||||
map_all_mode("<D-z>", function() vim.cmd("undo") end)
|
||||
vim.keymap.set("i", "<D-v>", '<C-O>"+p')
|
||||
vim.keymap.set("i", "<D-v>", '<C-O>"+P')
|
||||
vim.keymap.set("c", "<D-v>", "<C-R>+")
|
||||
vim.keymap.set("n", "<D-v>", '"+p', { desc = "Paste from clipboard" })
|
||||
vim.keymap.set("n", "<D-v>", '"+P', { desc = "Paste from clipboard" })
|
||||
vim.keymap.set("v", "<D-v>", '"_d"+gP', { desc = "Remove the selected part and paste from system clipboard." })
|
||||
vim.keymap.set("v", "<D-c>", '"+y', { desc = "Copy to clipboard in visual mode" })
|
||||
vim.keymap.set("v", "<D-x>", '"+d', { desc = "Cut to clipboard" })
|
||||
map_nv("<D-a>", "gg<S-v>G", { desc = "Select all" })
|
||||
-- end
|
||||
|
||||
|
||||
-- Set the keymap <leader>fg to trigger the picker
|
||||
-- vim.keymap.set("n", "<leader>fg", function()
|
||||
-- local Snacks = require("snacks")
|
||||
|
|
|
@ -38,6 +38,18 @@ return {
|
|||
vim.g.vimtex_view_method = "skim"
|
||||
vim.g.vimtex_view_skim_sync = 1
|
||||
vim.g.vimtex_view_skim_activate = 1
|
||||
vim.g.vimtex_compiler_latexmk = {
|
||||
out_dir = "build", -- use a separate build directory
|
||||
callback = 1, -- enable callback
|
||||
continuous = 1, -- enable continuous compilation
|
||||
options = {
|
||||
"-pdf", -- use pdf output
|
||||
"-shell-escape", -- enable shell escape
|
||||
"-verbose", -- verbose output
|
||||
"-file-line-error", -- file line error messages
|
||||
},
|
||||
}
|
||||
-- TODO: This seems not used
|
||||
vim.g.vimtex_toc_custom_matchers = {
|
||||
{ title = "Theorem", re = [[\v^\s*\\begin\{theorem\}]] },
|
||||
{ title = "Lemma", re = [[\v^\s*\\begin\{lemma\}]] },
|
||||
|
@ -186,6 +198,9 @@ return {
|
|||
-- end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"flin16/vim-overleaf",
|
||||
}
|
||||
}
|
||||
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue