fix: update gopls path

This commit is contained in:
2022-04-11 21:11:41 +08:00
parent 554068c22c
commit 8706bcb806
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
-- LSP
require'lspconfig'.gopls.setup{
cmd = {DATA_PATH .. "/lspinstall/go/gopls"},
-- cmd = {DATA_PATH .. "/lspinstall/go/gopls"},
cmd = {"gopls"}, -- use cmd in path, I can update it easily
settings = {gopls = {analyses = {unusedparams = true}, staticcheck = true}},
root_dir = require'lspconfig'.util.root_pattern(".git","go.mod"),
init_options = {usePlaceholders = true, completeUnimported = true},
+3 -3
View File
@@ -19,9 +19,9 @@ vim.o.termguicolors = true -- set term gui colors most terminals support this
vim.o.splitright = true -- Vertical splits will automatically be to the right
-- vim.o.t_Co = "256" -- Support 256 colors
vim.o.conceallevel = 0 -- So that I can see `` in markdown files
vim.cmd('set ts=4') -- Insert 2 spaces for a tab
vim.cmd('set sw=4') -- Change the number of space characters inserted for indentation
vim.cmd('set expandtab') -- Converts tabs to spaces
-- vim.cmd('set ts=4') -- Insert 2 spaces for a tab
-- vim.cmd('set sw=4') -- Change the number of space characters inserted for indentation
-- vim.cmd('set expandtab') -- Converts tabs to spaces
vim.bo.smartindent = true -- Makes indenting smart
vim.wo.number = true -- set numbered lines
vim.wo.relativenumber = true -- set relative number