fix(nvim): update plugin config to newer versions
This commit is contained in:
parent
5fd7363916
commit
a5b47c9cb7
6 changed files with 30 additions and 21 deletions
|
@ -6,12 +6,17 @@ vim.api.nvim_create_autocmd('BufWritePre', {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
require('lspconfig').gopls.setup {
|
require('lspconfig').gopls.setup {
|
||||||
|
capabilities = capabilities,
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 150,
|
debounce_text_changes = 150,
|
||||||
},
|
},
|
||||||
|
cmd = {'gopls', '--remote=auto'},
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
|
vulncheck = "Imports",
|
||||||
gofumpt = true,
|
gofumpt = true,
|
||||||
usePlaceholders = true,
|
usePlaceholders = true,
|
||||||
completeUnimported = true,
|
completeUnimported = true,
|
||||||
|
|
|
@ -26,21 +26,23 @@ require("diffview").setup({
|
||||||
},
|
},
|
||||||
file_history_panel = {
|
file_history_panel = {
|
||||||
log_options = {
|
log_options = {
|
||||||
single_file = {
|
git = {
|
||||||
max_count = 256, -- Limit the number of commits
|
single_file = {
|
||||||
follow = false, -- Follow renames (only for single file)
|
max_count = 256, -- Limit the number of commits
|
||||||
all = false, -- Include all refs under 'refs/' including HEAD
|
follow = false, -- Follow renames (only for single file)
|
||||||
merges = false, -- List only merge commits
|
all = false, -- Include all refs under 'refs/' including HEAD
|
||||||
no_merges = false, -- List no merge commits
|
merges = false, -- List only merge commits
|
||||||
reverse = false, -- List commits in reverse order
|
no_merges = false, -- List no merge commits
|
||||||
},
|
reverse = false, -- List commits in reverse order
|
||||||
multi_file = {
|
},
|
||||||
max_count = 256, -- Limit the number of commits
|
multi_file = {
|
||||||
follow = false, -- Follow renames (only for single file)
|
max_count = 256, -- Limit the number of commits
|
||||||
all = false, -- Include all refs under 'refs/' including HEAD
|
follow = false, -- Follow renames (only for single file)
|
||||||
merges = false, -- List only merge commits
|
all = false, -- Include all refs under 'refs/' including HEAD
|
||||||
no_merges = false, -- List no merge commits
|
merges = false, -- List only merge commits
|
||||||
reverse = false, -- List commits in reverse order
|
no_merges = false, -- List no merge commits
|
||||||
|
reverse = false, -- List commits in reverse order
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
win_config = { -- See ':h diffview-config-win_config'
|
win_config = { -- See ':h diffview-config-win_config'
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
vim.g.indent_blankline_char='│'
|
--vim.g.indent_blankline_char='│'
|
||||||
|
|
||||||
require("indent_blankline").setup {
|
vim.api.nvim_set_hl(0, "IblScope", { ctermfg=2, bold=true})
|
||||||
show_current_context = true,
|
|
||||||
show_current_context_start = true,
|
require("ibl").setup {
|
||||||
|
indent = { char = "▏" },
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ return require('packer').startup(function(use)
|
||||||
-- tag = 'release' -- To use the latest release
|
-- tag = 'release' -- To use the latest release
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
'TimUntersberger/neogit',
|
'NeogitOrg/neogit',
|
||||||
requires = {
|
requires = {
|
||||||
'nvim-lua/plenary.nvim'
|
'nvim-lua/plenary.nvim'
|
||||||
},
|
},
|
||||||
|
|
|
@ -48,9 +48,11 @@ require("neogit").setup {
|
||||||
folded = true
|
folded = true
|
||||||
},
|
},
|
||||||
unpulled = {
|
unpulled = {
|
||||||
|
hidden = false,
|
||||||
folded = true
|
folded = true
|
||||||
},
|
},
|
||||||
unmerged = {
|
unmerged = {
|
||||||
|
hidden = false,
|
||||||
folded = false
|
folded = false
|
||||||
},
|
},
|
||||||
recent = {
|
recent = {
|
||||||
|
|
|
@ -41,7 +41,6 @@ require('nvim-tree').setup {
|
||||||
},
|
},
|
||||||
view = {
|
view = {
|
||||||
width = 30,
|
width = 30,
|
||||||
hide_root_folder = false,
|
|
||||||
side = 'left',
|
side = 'left',
|
||||||
},
|
},
|
||||||
renderer = {
|
renderer = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue