This commit is contained in:
Shockwave 2024-11-18 16:57:31 +08:00
parent d0e294074b
commit c15667a5be
2 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,7 @@ local options = {
hlsearch = true,
incsearch = true,
ignorecase = true,
jumpoptions = "stack",
number = true,
ruler = true,
relativenumber = true,
@ -107,6 +108,7 @@ vim.cmd("nnoremap ; :")
-- silent = true,
-- noremap = true
-- })
-- vim.keymap.set("n", ";", ":", {noremap = true, silent = true})
--vim.api.nvim_set_keymap("i", "HH", "<Home>", {

View File

@ -41,6 +41,13 @@ local lazyopts = {
},
}
local function luasnip_build()
if vim.fn.has("win32") then
return "make install_jsregexp CC=clang.exe SHELL=C:\\Program Files\\Git\\usr\\bin\\bash.exe .SHELLFLAGS=-c"
end
return "make install_jsregexp"
end
local plugins = {
{
"nvim-lua/plenary.nvim",
@ -251,7 +258,7 @@ local plugins = {
-- follow latest release.
version = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
-- install jsregexp (optional!).
build = "make install_jsregexp",
build = luasnip_build(),
dependencies = {
"rafamadriz/friendly-snippets",
}