diff options
| -rw-r--r-- | init.vim | 12 | ||||
| -rw-r--r-- | nvim.lua | 59 |
2 files changed, 38 insertions, 33 deletions
| @@ -39,16 +39,6 @@ if has('nvim') | |||
| 39 | " Neovim | 39 | " Neovim |
| 40 | source ~/.config/nvim/nvim.lua | 40 | source ~/.config/nvim/nvim.lua |
| 41 | else | 41 | else |
| 42 | " Plugin | 42 | " Plugin |
| 43 | source ~/.vim/vim-init/init/init-plugins.vim | 43 | source ~/.vim/vim-init/init/init-plugins.vim |
| 44 | endif | 44 | endif |
| 45 | |||
| 46 | " Temp | ||
| 47 | let g:NERDTreeWinPos = "right" | ||
| 48 | let NERDTreeShowHidden=0 | ||
| 49 | let NERDTreeQuitOnOpen=1 | ||
| 50 | let NERDTreeIgnore = ['\.pyc$', '__pycache__'] | ||
| 51 | let g:NERDTreeWinSize=35 | ||
| 52 | map <leader>nn :NERDTreeToggle<cr> | ||
| 53 | map <leader>nb :NERDTreeFromBookmark<Space> | ||
| 54 | map <leader>nf :NERDTreeFind<cr> | ||
| @@ -61,7 +61,6 @@ vim.opt.runtimepath:prepend(lazypath) | |||
| 61 | -- as they will be available in your neovim runtime. | 61 | -- as they will be available in your neovim runtime. |
| 62 | require('lazy').setup({ | 62 | require('lazy').setup({ |
| 63 | -- NOTE: First, some plugins that don't require any configuration | 63 | -- NOTE: First, some plugins that don't require any configuration |
| 64 | |||
| 65 | -- Git related plugins | 64 | -- Git related plugins |
| 66 | 'tpope/vim-fugitive', | 65 | 'tpope/vim-fugitive', |
| 67 | 'tpope/vim-rhubarb', | 66 | 'tpope/vim-rhubarb', |
| @@ -76,9 +75,11 @@ require('lazy').setup({ | |||
| 76 | 'nathangrigg/vim-beancount', | 75 | 'nathangrigg/vim-beancount', |
| 77 | 76 | ||
| 78 | -- For surrounding | 77 | -- For surrounding |
| 79 | 'machakann/vim-sandwich', | 78 | 'tpope/vim-surround', |
| 80 | |||
| 81 | 79 | ||
| 80 | -- From vim plugin | ||
| 81 | 'junegunn/goyo.vim', | ||
| 82 | 'itchyny/lightline.vim', | ||
| 82 | 83 | ||
| 83 | 84 | ||
| 84 | -- NOTE: This is where your plugins related to LSP can be installed. | 85 | -- NOTE: This is where your plugins related to LSP can be installed. |
| @@ -160,19 +161,19 @@ require('lazy').setup({ | |||
| 160 | end, | 161 | end, |
| 161 | }, | 162 | }, |
| 162 | 163 | ||
| 163 | { | 164 | --{ |
| 164 | -- Set lualine as statusline | 165 | -- -- Set lualine as statusline |
| 165 | 'nvim-lualine/lualine.nvim', | 166 | -- 'nvim-lualine/lualine.nvim', |
| 166 | -- See `:help lualine.txt` | 167 | -- -- See `:help lualine.txt` |
| 167 | opts = { | 168 | -- opts = { |
| 168 | options = { | 169 | -- options = { |
| 169 | icons_enabled = false, | 170 | -- icons_enabled = false, |
| 170 | theme = 'onedark', | 171 | -- theme = 'onedark', |
| 171 | component_separators = '|', | 172 | -- component_separators = '|', |
| 172 | section_separators = { left = '', right = '' }, | 173 | -- section_separators = { left = '', right = '' }, |
| 173 | }, | 174 | -- }, |
| 174 | }, | 175 | -- }, |
| 175 | }, | 176 | --}, |
| 176 | 177 | ||
| 177 | { | 178 | { |
| 178 | -- Add indentation guides even on blank lines | 179 | -- Add indentation guides even on blank lines |
| @@ -303,12 +304,26 @@ vim.cmd("command! W execute 'SudaWrite %'") | |||
| 303 | 304 | ||
| 304 | -- [[ Configure lualine ]] | 305 | -- [[ Configure lualine ]] |
| 305 | -- Change the background of lualine_b section for normal mode | 306 | -- Change the background of lualine_b section for normal mode |
| 306 | local custom_wombat = require 'lualine.themes.wombat' | 307 | -- local custom_wombat = require 'lualine.themes.wombat' |
| 307 | custom_wombat.normal.b.bg = '#a8a8a8' | 308 | -- custom_wombat.normal.b.bg = '#a8a8a8' |
| 308 | custom_wombat.normal.b.fg = '#444444' | 309 | -- custom_wombat.normal.b.fg = '#444444' |
| 309 | require('lualine').setup { | 310 | -- require('lualine').setup { |
| 310 | options = { theme = custom_wombat }, | 311 | -- options = { theme = custom_wombat }, |
| 311 | } | 312 | -- } |
| 313 | -- [[ Configure lightline ]] | ||
| 314 | vim.cmd("let g:lightline = { 'colorscheme': 'wombat' }") | ||
| 315 | |||
| 316 | -- [[ Configure Goyo ]] | ||
| 317 | vim.cmd("nnoremap <silent> <leader>z :Goyo<CR>") | ||
| 318 | |||
| 319 | -- [[ Configure NERDTree ]] | ||
| 320 | vim.cmd('let g:NERDTreeWinPos = "left"') | ||
| 321 | vim.cmd("let NERDTreeShowHidden=0") | ||
| 322 | vim.cmd("let NERDTreeQuitOnOpen=1") | ||
| 323 | vim.api.nvim_set_var('NERDTreeWinSize', 35) | ||
| 324 | vim.cmd("map <C-n> :NERDTreeToggle<cr>") | ||
| 325 | vim.cmd("map <leader>nb :NERDTreeFromBookmark<Space>") | ||
| 326 | vim.cmd("map <leader>nf :NERDTreeFind<cr>") | ||
| 312 | 327 | ||
| 313 | -- [[ Highlight on yank ]] | 328 | -- [[ Highlight on yank ]] |
| 314 | -- See `:help vim.highlight.on_yank()` | 329 | -- See `:help vim.highlight.on_yank()` |