aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.vim12
-rw-r--r--nvim.lua59
2 files changed, 38 insertions, 33 deletions
diff --git a/init.vim b/init.vim
index d312d38..c5859b5 100644
--- a/init.vim
+++ b/init.vim
@@ -39,16 +39,6 @@ if has('nvim')
39 " Neovim 39 " Neovim
40 source ~/.config/nvim/nvim.lua 40 source ~/.config/nvim/nvim.lua
41else 41else
42" Plugin 42 " Plugin
43 source ~/.vim/vim-init/init/init-plugins.vim 43 source ~/.vim/vim-init/init/init-plugins.vim
44endif 44endif
45
46" Temp
47let g:NERDTreeWinPos = "right"
48let NERDTreeShowHidden=0
49let NERDTreeQuitOnOpen=1
50let NERDTreeIgnore = ['\.pyc$', '__pycache__']
51let g:NERDTreeWinSize=35
52map <leader>nn :NERDTreeToggle<cr>
53map <leader>nb :NERDTreeFromBookmark<Space>
54map <leader>nf :NERDTreeFind<cr>
diff --git a/nvim.lua b/nvim.lua
index 735bafe..91dd462 100644
--- a/nvim.lua
+++ b/nvim.lua
@@ -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.
62require('lazy').setup({ 62require('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
306local custom_wombat = require 'lualine.themes.wombat' 307-- local custom_wombat = require 'lualine.themes.wombat'
307custom_wombat.normal.b.bg = '#a8a8a8' 308-- custom_wombat.normal.b.bg = '#a8a8a8'
308custom_wombat.normal.b.fg = '#444444' 309-- custom_wombat.normal.b.fg = '#444444'
309require('lualine').setup { 310-- require('lualine').setup {
310 options = { theme = custom_wombat }, 311-- options = { theme = custom_wombat },
311} 312-- }
313-- [[ Configure lightline ]]
314vim.cmd("let g:lightline = { 'colorscheme': 'wombat' }")
315
316-- [[ Configure Goyo ]]
317vim.cmd("nnoremap <silent> <leader>z :Goyo<CR>")
318
319-- [[ Configure NERDTree ]]
320vim.cmd('let g:NERDTreeWinPos = "left"')
321vim.cmd("let NERDTreeShowHidden=0")
322vim.cmd("let NERDTreeQuitOnOpen=1")
323vim.api.nvim_set_var('NERDTreeWinSize', 35)
324vim.cmd("map <C-n> :NERDTreeToggle<cr>")
325vim.cmd("map <leader>nb :NERDTreeFromBookmark<Space>")
326vim.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()`