add minimap plugin with default keybindings
This commit is contained in:
parent
4c8622fe36
commit
bdb936d1f8
2 changed files with 14 additions and 1 deletions
3
init.vim
3
init.vim
|
@ -10,6 +10,7 @@ Plug 'williamboman/mason.nvim'
|
|||
Plug 'williamboman/mason-lspconfig.nvim'
|
||||
Plug 'jose-elias-alvarez/null-ls.nvim'
|
||||
|
||||
Plug 'gorbit99/codewindow.nvim'
|
||||
Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'preservim/nerdcommenter'
|
||||
|
@ -36,7 +37,7 @@ Plug 'bluz71/vim-moonfly-colors'
|
|||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
|
||||
Plug 'BurntSushi/ripgrep'
|
||||
"Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
|
|
@ -13,6 +13,18 @@ require("null-ls").setup({
|
|||
},
|
||||
})
|
||||
|
||||
-- setup minimap
|
||||
local codewindow = require('codewindow')
|
||||
codewindow.setup({
|
||||
minimap_width = 20, -- The width of the text part of the minimap
|
||||
width_multiplier = 4, -- How many characters one dot represents
|
||||
use_lsp = true, -- Use the builtin LSP to show errors and warnings
|
||||
use_treesitter = true, -- Use nvim-treesitter to highlight the code
|
||||
exclude_filetypes = {}, -- Choose certain filetypes to not show minimap on
|
||||
z_index = 1, -- The z-index the floating window will be on
|
||||
})
|
||||
codewindow.apply_default_keybinds()
|
||||
|
||||
|
||||
-- load perl lsp
|
||||
local config = {
|
||||
|
|
Loading…
Reference in a new issue