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
|
||||
})
|
||||
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
require('lspconfig').gopls.setup {
|
||||
capabilities = capabilities,
|
||||
flags = {
|
||||
debounce_text_changes = 150,
|
||||
},
|
||||
cmd = {'gopls', '--remote=auto'},
|
||||
settings = {
|
||||
gopls = {
|
||||
vulncheck = "Imports",
|
||||
gofumpt = true,
|
||||
usePlaceholders = true,
|
||||
completeUnimported = true,
|
||||
|
|
|
@ -26,6 +26,7 @@ require("diffview").setup({
|
|||
},
|
||||
file_history_panel = {
|
||||
log_options = {
|
||||
git = {
|
||||
single_file = {
|
||||
max_count = 256, -- Limit the number of commits
|
||||
follow = false, -- Follow renames (only for single file)
|
||||
|
@ -43,6 +44,7 @@ require("diffview").setup({
|
|||
reverse = false, -- List commits in reverse order
|
||||
},
|
||||
},
|
||||
},
|
||||
win_config = { -- See ':h diffview-config-win_config'
|
||||
position = "bottom",
|
||||
height = 16,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
vim.g.indent_blankline_char='│'
|
||||
--vim.g.indent_blankline_char='│'
|
||||
|
||||
require("indent_blankline").setup {
|
||||
show_current_context = true,
|
||||
show_current_context_start = true,
|
||||
vim.api.nvim_set_hl(0, "IblScope", { ctermfg=2, bold=true})
|
||||
|
||||
require("ibl").setup {
|
||||
indent = { char = "▏" },
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ return require('packer').startup(function(use)
|
|||
-- tag = 'release' -- To use the latest release
|
||||
}
|
||||
use {
|
||||
'TimUntersberger/neogit',
|
||||
'NeogitOrg/neogit',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
|
|
|
@ -48,9 +48,11 @@ require("neogit").setup {
|
|||
folded = true
|
||||
},
|
||||
unpulled = {
|
||||
hidden = false,
|
||||
folded = true
|
||||
},
|
||||
unmerged = {
|
||||
hidden = false,
|
||||
folded = false
|
||||
},
|
||||
recent = {
|
||||
|
|
|
@ -41,7 +41,6 @@ require('nvim-tree').setup {
|
|||
},
|
||||
view = {
|
||||
width = 30,
|
||||
hide_root_folder = false,
|
||||
side = 'left',
|
||||
},
|
||||
renderer = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue