diff --git a/init.vim b/init.vim index 752bfad..a0fc01f 100644 --- a/init.vim +++ b/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() diff --git a/lua/general.lua b/lua/general.lua index 37140a0..d711047 100644 --- a/lua/general.lua +++ b/lua/general.lua @@ -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 = {