Clean up NeoVim configuration
parent
6a54eb713b
commit
00efb1065b
|
@ -1,6 +1,4 @@
|
|||
## My vim configuration
|
||||
|
||||
Currently configuration is shared between Vim and NeoVim, although I use NeoVim. Migration will happen when NeoVim 0.5.0 is released and `init.lua` is supported.
|
||||
## My NeoVim configuration
|
||||
|
||||
Configuration is separated into directories:
|
||||
- `plugin` for logical collection of functionalities into a simple plugin
|
||||
|
@ -10,7 +8,4 @@ Configuration is separated into directories:
|
|||
- `undodir` is just a placeholder for configured undo directory
|
||||
- `spell` for spelling dictionary
|
||||
- `after` with same directory structure for loading after plugins - allows easy overrides, most `ftplugins` are here
|
||||
|
||||
Besides this, directory contains other files:
|
||||
- `plugins.vim` all used plugins
|
||||
- `vimrc` global basic configuration
|
||||
- `lua` for all lua config files, with `ftplugin` and `plugin` too, enabled by [astronauta](https://github.com/tjdevries/astronauta.nvim)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
setlocal textwidth=78
|
||||
set spell
|
||||
setlocal spell
|
||||
let b:undo_ftplugin .= '|setlocal textwidth< spell<'
|
||||
|
|
|
@ -32,6 +32,7 @@ return require('packer').startup {
|
|||
use 'wellle/targets.vim' -- Additional targets for inside and around motions
|
||||
use 'flazz/vim-colorschemes' -- All popular colorschemes
|
||||
use 'romainl/vim-qf' -- Quickfix list upgrades
|
||||
use 'romainl/vim-devdocs' -- Quick DevDocs.io search using :DD
|
||||
|
||||
-- Tools --
|
||||
use 'direnv/direnv.vim' -- Integration with Direnv
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
" NOTE: You can use other key to expand snippet.
|
||||
|
||||
" Expand
|
||||
imap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<C-j>'
|
||||
smap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<C-j>'
|
||||
|
||||
" Expand or jump
|
||||
imap <expr> <C-l> vsnip#available(1) ? '<Plug>(vsnip-expand-or-jump)' : '<C-l>'
|
||||
smap <expr> <C-l> vsnip#available(1) ? '<Plug>(vsnip-expand-or-jump)' : '<C-l>'
|
||||
|
||||
" Jump forward or backward
|
||||
imap <expr> <Tab> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<Tab>'
|
||||
smap <expr> <Tab> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<Tab>'
|
||||
imap <expr> <S-Tab> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<S-Tab>'
|
||||
smap <expr> <S-Tab> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<S-Tab>'
|
||||
|
||||
" Select or cut text to use as $TM_SELECTED_TEXT in the next snippet.
|
||||
" See https://github.com/hrsh7th/vim-vsnip/pull/50
|
||||
nmap s <Plug>(vsnip-select-text)
|
||||
xmap s <Plug>(vsnip-select-text)
|
||||
nmap S <Plug>(vsnip-cut-text)
|
||||
xmap S <Plug>(vsnip-cut-text)
|
|
@ -1,4 +1,6 @@
|
|||
## My NeoVim configuration
|
||||
## My vim configuration
|
||||
|
||||
Currently configuration is shared between Vim and NeoVim, although I use NeoVim. Migration will happen when NeoVim 0.5.0 is released and `init.lua` is supported.
|
||||
|
||||
Configuration is separated into directories:
|
||||
- `plugin` for logical collection of functionalities into a simple plugin
|
||||
|
|
Loading…
Reference in New Issue