Update nvim

This commit is contained in:
Shockwave 2025-02-06 07:57:15 +08:00
parent e30b1db645
commit fab83113e8
4 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ end
local ok, op = pcall(require, "editor.option") local ok, op = pcall(require, "editor.option")
if not ok then if not ok then
print("editor.option load error") vim.notify("editor.option load error")
end end
local ghproxy = "" local ghproxy = ""
if op then if op then

View File

@ -5,7 +5,7 @@ if not ok then
end end
local gofmt = require('go.format') local gofmt = require('go.format')
do_fmt = gofmt.gofmt local do_fmt = gofmt.gofmt
do_import = gofmt.goimport local do_import = gofmt.goimport
vim.api.nvim_exec2([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], { output = false }) vim.api.nvim_exec2([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], { output = false })
go.setup() go.setup()

View File

@ -1,7 +1,7 @@
-- editor.option 模块没有返回值,所以 require 之后返回 true但可以引用模块中的全局变量 -- editor.option 模块没有返回值,所以 require 之后返回 true但可以引用模块中的全局变量
local ok, op = pcall(require, "editor.option") local ok, op = pcall(require, "editor.option")
if not ok then if not ok then
print("editor.option load error") vim.notify("editor.option load error")
end end
local ghproxy = "" local ghproxy = ""