chore: format lua
This commit is contained in:
parent
3391a6d60a
commit
06d2d1ed02
@ -1 +1 @@
|
|||||||
vim.cmd([[colorscheme tokyonight-storm]])
|
-- vim.cmd([[colorscheme tokyonight-storm]])
|
||||||
|
@ -46,13 +46,13 @@ cmp.setup({
|
|||||||
|
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities() --nvim-cmp
|
local capabilities = require("cmp_nvim_lsp").default_capabilities() --nvim-cmp
|
||||||
|
|
||||||
require("lspconfig")["golangci_lint_ls"].setup({
|
require("lspconfig").golangci_lint_ls.setup({
|
||||||
on_attach = common_lsp_on_attach,
|
on_attach = common_lsp_on_attach,
|
||||||
flags = common_lsp_flags,
|
flags = common_lsp_flags,
|
||||||
})
|
})
|
||||||
|
|
||||||
util = require("lspconfig/util")
|
util = require("lspconfig/util")
|
||||||
require("lspconfig")["gopls"].setup({
|
require("lspconfig").gopls.setup({
|
||||||
cmd = { "gopls" },
|
cmd = { "gopls" },
|
||||||
filetypes = { "go", "gomod" },
|
filetypes = { "go", "gomod" },
|
||||||
root_dir = util.root_pattern("go.work", "go.mod", ".git"),
|
root_dir = util.root_pattern("go.work", "go.mod", ".git"),
|
||||||
@ -71,4 +71,3 @@ require("lspconfig")["gopls"].setup({
|
|||||||
},
|
},
|
||||||
init_options = { usePlaceholders = true },
|
init_options = { usePlaceholders = true },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ function IsFileExist(filename)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IsWindows()
|
function IsWindows()
|
||||||
local delimeter = package.config.sub(1, 1)
|
local delimeter = package.config:sub(1, 1)
|
||||||
if delimeter == "/" then
|
if delimeter == "/" then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -49,4 +49,3 @@ G.map({
|
|||||||
{ "c", "<up>", [[wilder#in_context() ? wilder#previous() : '<up>']], { noremap = true, expr = true } },
|
{ "c", "<up>", [[wilder#in_context() ? wilder#previous() : '<up>']], { noremap = true, expr = true } },
|
||||||
{ "c", "0", "0", {} }, -- 不清楚原因导致0无法使用 强制覆盖
|
{ "c", "0", "0", {} }, -- 不清楚原因导致0无法使用 强制覆盖
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user