Compare commits
2 Commits
fa12cedb72
...
b2023a404b
Author | SHA1 | Date | |
---|---|---|---|
|
b2023a404b | ||
|
a7d7ee0e0f |
5
nvimrc
5
nvimrc
@ -30,6 +30,9 @@ command! -nargs=0 -bar Helptags
|
|||||||
\| endfor
|
\| endfor
|
||||||
\| helptags ALL
|
\| 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 shiftwidth=2
|
||||||
set shiftround
|
set shiftround
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
@ -44,7 +47,7 @@ set smartindent
|
|||||||
set copyindent
|
set copyindent
|
||||||
set autoindent
|
set autoindent
|
||||||
set hlsearch
|
set hlsearch
|
||||||
set showmatch
|
set noshowmatch
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildmode=list:full,full
|
set wildmode=list:full,full
|
||||||
set number
|
set number
|
||||||
|
@ -92,11 +92,6 @@ require("lualine").setup({
|
|||||||
lualine_x = {
|
lualine_x = {
|
||||||
{
|
{
|
||||||
function()
|
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
|
return vim.bo.filetype
|
||||||
end,
|
end,
|
||||||
padding = { left = 1, right = 0 },
|
padding = { left = 1, right = 0 },
|
||||||
|
@ -54,7 +54,7 @@ nvim_lsp.gopls.setup({
|
|||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
staticcheck = true,
|
staticcheck = true,
|
||||||
-- Disalbing linksInHover may not be working as expected:
|
-- Disabling linksInHover may not be working as expected:
|
||||||
linksInHover = false,
|
linksInHover = false,
|
||||||
usePlaceholders = true,
|
usePlaceholders = true,
|
||||||
experimentalPostfixCompletions = true,
|
experimentalPostfixCompletions = true,
|
||||||
@ -65,12 +65,23 @@ nvim_lsp.gopls.setup({
|
|||||||
unusedresult = true,
|
unusedresult = true,
|
||||||
nilness = true,
|
nilness = true,
|
||||||
},
|
},
|
||||||
|
buildFlags = { "-tags=acceptance" }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
init_options = {
|
init_options = {
|
||||||
usePlaceholders = true,
|
usePlaceholders = true,
|
||||||
},
|
},
|
||||||
capabilities = capabilities,
|
capabilities = vim.tbl_extend(
|
||||||
|
"error",
|
||||||
|
capabilities,
|
||||||
|
{
|
||||||
|
workspace = {
|
||||||
|
didChangeWatchedFiles = {
|
||||||
|
dynamicRegistration = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
),
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user