Update nvim
This commit is contained in:
parent
e30b1db645
commit
fab83113e8
|
@ -12,7 +12,7 @@ local options = {
|
|||
fileencoding = "utf-8",
|
||||
fileencodings = "utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936",
|
||||
foldenable = true,
|
||||
foldlevel=1,
|
||||
foldlevel = 1,
|
||||
foldlevelstart = 99,
|
||||
foldmethod = "syntax",
|
||||
gdefault = true,
|
||||
|
|
|
@ -15,7 +15,7 @@ end
|
|||
|
||||
local ok, op = pcall(require, "editor.option")
|
||||
if not ok then
|
||||
print("editor.option load error")
|
||||
vim.notify("editor.option load error")
|
||||
end
|
||||
local ghproxy = ""
|
||||
if op then
|
||||
|
|
|
@ -5,7 +5,7 @@ if not ok then
|
|||
end
|
||||
|
||||
local gofmt = require('go.format')
|
||||
do_fmt = gofmt.gofmt
|
||||
do_import = gofmt.goimport
|
||||
local do_fmt = gofmt.gofmt
|
||||
local do_import = gofmt.goimport
|
||||
vim.api.nvim_exec2([[ autocmd BufWritePre *.go :silent! lua require('go.format').goimport() ]], { output = false })
|
||||
go.setup()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-- editor.option 模块没有返回值,所以 require 之后返回 true,但可以引用模块中的全局变量
|
||||
local ok, op = pcall(require, "editor.option")
|
||||
if not ok then
|
||||
print("editor.option load error")
|
||||
vim.notify("editor.option load error")
|
||||
end
|
||||
|
||||
local ghproxy = ""
|
||||
|
|
Loading…
Reference in New Issue