Compare commits

..

No commits in common. "b2023a404badff0fed469bf7313d8cd363d94218" and "fa12cedb729ff8003ae243b317e89de275ada702" have entirely different histories.

3 changed files with 8 additions and 17 deletions

5
nvimrc
View File

@ -30,9 +30,6 @@ command! -nargs=0 -bar Helptags
\| endfor
\| helptags ALL
" https://stackoverflow.com/questions/34675677/disable-highlight-matched-parentheses-in-vim-let-loaded-matchparen-1-not-w
let g:loaded_matchparen=1
set shiftwidth=2
set shiftround
set tabstop=2
@ -47,7 +44,7 @@ set smartindent
set copyindent
set autoindent
set hlsearch
set noshowmatch
set showmatch
set wildmenu
set wildmode=list:full,full
set number

View File

@ -92,6 +92,11 @@ require("lualine").setup({
lualine_x = {
{
function()
local go_status_line = vim.api.nvim_call_function("go#statusline#Show", {})
if go_status_line ~= "" then
return go_status_line
end
return vim.bo.filetype
end,
padding = { left = 1, right = 0 },

View File

@ -54,7 +54,7 @@ nvim_lsp.gopls.setup({
settings = {
gopls = {
staticcheck = true,
-- Disabling linksInHover may not be working as expected:
-- Disalbing linksInHover may not be working as expected:
linksInHover = false,
usePlaceholders = true,
experimentalPostfixCompletions = true,
@ -65,23 +65,12 @@ nvim_lsp.gopls.setup({
unusedresult = true,
nilness = true,
},
buildFlags = { "-tags=acceptance" }
},
},
init_options = {
usePlaceholders = true,
},
capabilities = vim.tbl_extend(
"error",
capabilities,
{
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
),
capabilities = capabilities,
on_attach = on_attach,
})