add a bunch more vim plugins

This commit is contained in:
mokou 2021-06-01 13:25:18 +02:00
parent 896cc328e8
commit eb3f9b7286
5 changed files with 49 additions and 1 deletions

View file

@ -4,9 +4,13 @@ require('options')
-- packages -- packages
require('pack') require('pack')
-- keymaps
require('mappings')
-- plugin stuff -- plugin stuff
require('plugins.setups') require('plugins.setups')
require('plugins.telescope') require('plugins.telescope')
require('plugins.lspconfig') require('plugins.lspconfig')
require('plugins.hardline')
require('plugins.treesitter') require('plugins.treesitter')
require('plugins.compe') require('plugins.compe')

View file

@ -0,0 +1,8 @@
local set_keymap = require('common').set_keymap
-- reload vimrc
set_keymap('n', '<leader>sv', '<cmd>Reload<cr>')
-- hop
set_keymap('n', '<leader>hw', '<cmd>HopWord<cr>')
set_keymap('n', '<leader>hl', '<cmd>HopLine<cr>')

View file

@ -16,12 +16,30 @@ paq 'rmagatti/auto-session' -- auto session
paq 'rmagatti/session-lens' -- session lens for telescope paq 'rmagatti/session-lens' -- session lens for telescope
paq 'crispgm/telescope-heading.nvim' -- markdown heading for telescope paq 'crispgm/telescope-heading.nvim' -- markdown heading for telescope
-- views
paq 'ojroques/nvim-hardline' -- status line
paq 'crispgm/nvim-tabline' -- tab line
paq 'dstein64/nvim-scrollview' -- scrollbar
paq 'google/vim-searchindex' -- search index
paq 'editorconfig/editorconfig-vim' -- editorconfig support
paq 'RRethy/vim-illuminate' -- word highlighting
paq 'lewis6991/gitsigns.nvim' -- git gutter
-- edit
paq 'phaazon/hop.nvim' -- hopping around
paq 'tpope/vim-surround' -- change surrounds
paq 'tpope/vim-commentary' -- comment stuff out/in
paq 'christoomey/vim-system-copy' -- copy n paste into system clipboard
paq 'steelsojka/pears.nvim' -- auto bracket match and other stuff
-- language -- language
paq {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'} -- treesitter paq {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'} -- treesitter
paq 'nvim-treesitter/playground' -- ts playground paq 'nvim-treesitter/playground' -- ts playground
paq 'nvim-treesitter/nvim-treesitter-textobjects' -- ts textobjects paq 'nvim-treesitter/nvim-treesitter-textobjects' -- ts textobjects
paq 'neovim/nvim-lspconfig' -- lsp client config paq 'neovim/nvim-lspconfig' -- lsp client config
paq 'hrsh7th/nvim-compe' -- completion paq 'hrsh7th/nvim-compe' -- completion
paq 'rust-lang/rust.vim' -- rust support
paq 'elixir-editors/vim-elixir' -- elixir support
-- misc -- misc
paq 'elixir-editors/vim-elixir' -- elixir support paq 'famiu/nvim-reload' -- reloading the vimrc

View file

@ -0,0 +1,16 @@
require('hardline').setup {
bufferline = false,
sections = {
{class = 'mode', item = require('hardline.parts.mode').get_item},
{class = 'high', item = require('hardline.parts.git').get_item, hide = 80},
'%<',
{class = 'med', item = require('hardline.parts.filename').get_item},
{class = 'med', item ='%='},
{class = 'low', item = require('hardline.parts.wordcount').get_item, hide = 80},
{class = 'error', item = require('hardline.parts.lsp').get_error},
{class = 'warning', item = require('hardline.parts.lsp').get_warning},
{class = 'warning', item = require('hardline.parts.whitespace').get_item},
{class = 'high', item = require('hardline.parts.filetype').get_item, hide = 80},
{class = 'mode', item = require('hardline.parts.line').get_item},
},
}

View file

@ -1,3 +1,5 @@
local vim = vim local vim = vim
require('tabline').setup{}
require('gitsigns').setup()
vim.api.nvim_command('colorscheme fairyfloss') vim.api.nvim_command('colorscheme fairyfloss')