Update nvim
This commit is contained in:
parent
e30b1db645
commit
fab83113e8
|
@ -12,7 +12,7 @@ local options = {
|
||||||
fileencoding = "utf-8",
|
fileencoding = "utf-8",
|
||||||
fileencodings = "utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936",
|
fileencodings = "utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936",
|
||||||
foldenable = true,
|
foldenable = true,
|
||||||
foldlevel=1,
|
foldlevel = 1,
|
||||||
foldlevelstart = 99,
|
foldlevelstart = 99,
|
||||||
foldmethod = "syntax",
|
foldmethod = "syntax",
|
||||||
gdefault = true,
|
gdefault = true,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in New Issue