neovin: Remove minimap and use a simplistic scrollbar
...with LSP integration, of course
This commit is contained in:
parent
93936d00ae
commit
9e53067078
|
@ -42,41 +42,6 @@ fun! ShowNumberIfNecessary()
|
||||||
endfun
|
endfun
|
||||||
autocmd BufEnter * call ShowNumberIfNecessary()
|
autocmd BufEnter * call ShowNumberIfNecessary()
|
||||||
|
|
||||||
" Minimap
|
|
||||||
fun! ResizeMinimap()
|
|
||||||
if &ft =~ g:special_filetype_pattern
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
if index(g:minimap_block_filetypes, &ft) >= 0
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
if index(g:minimap_block_buftypes, &bt) >= 0
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
MinimapClose
|
|
||||||
Minimap
|
|
||||||
endfun
|
|
||||||
let g:minimap_git_colors = 1
|
|
||||||
let g:minimap_width = 16
|
|
||||||
autocmd VimResized * call ResizeMinimap()
|
|
||||||
|
|
||||||
" Prevent Minimap from being focused
|
|
||||||
lua << EOF
|
|
||||||
function _G.reject_minimap_focus()
|
|
||||||
local mmwinnr = vim.fn.bufwinnr("-MINIMAP-")
|
|
||||||
|
|
||||||
if mmwinnr == -1 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if vim.fn.winnr() == mmwinnr then
|
|
||||||
-- Go to the other window.
|
|
||||||
vim.api.nvim_command("wincmd t")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
EOF
|
|
||||||
autocmd WinEnter * lua reject_minimap_focus()
|
|
||||||
|
|
||||||
" Terminal remapping
|
" Terminal remapping
|
||||||
lua << EOF
|
lua << EOF
|
||||||
function _G.set_terminal_keymaps()
|
function _G.set_terminal_keymaps()
|
||||||
|
|
|
@ -32,9 +32,6 @@ return require('packer').startup(function(use)
|
||||||
-- A way saner buffer closing implementation
|
-- A way saner buffer closing implementation
|
||||||
use "ojroques/nvim-bufdel"
|
use "ojroques/nvim-bufdel"
|
||||||
|
|
||||||
-- Minimap
|
|
||||||
use "wfxr/minimap.vim"
|
|
||||||
|
|
||||||
-- Indentation guide
|
-- Indentation guide
|
||||||
use "lukas-reineke/indent-blankline.nvim"
|
use "lukas-reineke/indent-blankline.nvim"
|
||||||
|
|
||||||
|
@ -46,6 +43,14 @@ return require('packer').startup(function(use)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Scrollbar
|
||||||
|
use {
|
||||||
|
"petertriho/nvim-scrollbar",
|
||||||
|
config = function()
|
||||||
|
require("scrollbar").setup()
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
-- Directory tree
|
-- Directory tree
|
||||||
use {
|
use {
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
|
Loading…
Reference in a new issue