Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream merge #3

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
185d17c
Add tabular.
hgaiser Jan 22, 2021
7b43f3d
Add vim-visual-multi.
hgaiser Feb 12, 2021
5d26ee1
Use system rust-analyzer.
hgaiser Apr 22, 2021
38e5897
Add coc-json.
hgaiser Apr 23, 2021
f7349d2
Add \f to find the current file in NERDTree.
hgaiser Aug 25, 2021
9b2dd42
Add codeaction on ctrl+s ctrl+s.
hgaiser Aug 30, 2021
2773838
Use clippy for check command.
hgaiser Oct 5, 2021
4b19942
Use coc-pyright for python.
hgaiser Oct 5, 2021
1b9550b
Use coc-clangd for C++.
hgaiser Oct 5, 2021
f1d9468
Update on installation.
hgaiser Oct 5, 2021
8fa7472
Remove ccls from coc-settings.json.
hgaiser Oct 5, 2021
cc4f493
Suggest to install clang instead of ccls.
hgaiser Oct 5, 2021
454ff66
Correctly set ultisnips dir.
hgaiser Nov 8, 2021
8d8f640
Add missing comma.
hgaiser Nov 23, 2021
e1ecb19
Add editorconfig plugin.
hgaiser Nov 24, 2021
bc27203
Map Ctrl-J to split line as well.
hgaiser Nov 26, 2021
5c8ea0f
First moves towards lua configuration.
hgaiser Nov 12, 2021
d8ca3ce
Set nvim-tree icons.
hgaiser Nov 26, 2021
d0026a6
Remove lualine separators.
hgaiser Nov 26, 2021
f7bddb1
Switch to nvim-lsp.
hgaiser Nov 26, 2021
1066a95
Skip yarn check.
hgaiser Nov 30, 2021
cdfe2f7
Revert "Map Ctrl-J to split line as well."
hgaiser Nov 30, 2021
e3753ae
Fix vsnip.
hgaiser Nov 30, 2021
9ff5665
Revert c-j for line insert.
hgaiser Nov 30, 2021
0409e06
Improve keybindings for lsp.
hgaiser Nov 30, 2021
ba40205
Update lspsaga for neovim 0.6.
hgaiser Dec 1, 2021
8ded137
Map Tab / S-Tab to buffers / files.
hgaiser Dec 4, 2021
fd614a8
Add treesitter.
hgaiser Dec 4, 2021
cef8de4
Refactor for lua configuration.
hgaiser Dec 10, 2021
38219a3
Add lua plugin caching.
hgaiser Dec 10, 2021
141895a
Rename nvim_tree to nvim-tree.
hgaiser Dec 10, 2021
140c8df
Remove diagnostic icon.
hgaiser Dec 10, 2021
ce060d2
Improve how NvimTree looks.
hgaiser Dec 10, 2021
ff098eb
Correct colorscheme.
hgaiser Dec 10, 2021
9bb5bb4
Fix ugly color in diagnostic window.
hgaiser Dec 10, 2021
cbb36fb
Highlight yanked text.
hgaiser Dec 10, 2021
adffe56
Show selected tab darker than the rest.
hgaiser Dec 10, 2021
f8b860e
Hide tilde line numbers on empty lines.
hgaiser Dec 10, 2021
123acbf
Add set of commonly used snippets.
hgaiser Dec 11, 2021
751b69a
Close nvim-tree if it is the last thing.
hgaiser Dec 11, 2021
5d517c8
Hide ~ differently.
hgaiser Dec 11, 2021
9092450
Switch from paq to packer.
hgaiser Dec 14, 2021
5af6d48
Change NvimTree marker color.
hgaiser Dec 14, 2021
87928b1
Add mapping for lsp.
hgaiser Dec 14, 2021
22412ee
Load plugins after installing them.
hgaiser Dec 19, 2021
7f0cda9
Disable vim-sleuth for now.
hgaiser Dec 19, 2021
ea6b69f
Add auto command for reloading packages.
hgaiser Dec 19, 2021
60cacd4
Remove rust-tools for now.
hgaiser Dec 19, 2021
de244b1
Move theme config to packer init.
hgaiser Dec 19, 2021
7d56191
Remove require of removed theme file.
hgaiser Dec 19, 2021
0c3787e
Simplify root dir pattern for rust-analyzer.
hgaiser Dec 19, 2021
2121699
Register plenary as required plugin.
hgaiser Dec 19, 2021
08c46ac
Add LSP progress in lualine.
hgaiser Dec 19, 2021
14b6083
Re-add terminal options.
hgaiser Dec 19, 2021
9b18000
Re-add rust-tools.
hgaiser Dec 19, 2021
efbc6b8
Move gruvbox to lua.
hgaiser Dec 20, 2021
97b1244
Use vim-sleuth that doesn't break things.
hgaiser Dec 20, 2021
8789b0b
Add vim-startuptime.
hgaiser Dec 20, 2021
e60607f
Correctly set LSP settings.
hgaiser Dec 20, 2021
860da48
Add shortcuts for navigating windows.
hgaiser Dec 20, 2021
31863bf
Change nvim-tree folder color.
hgaiser Dec 20, 2021
f1df5af
Set icon for untracked files.
hgaiser Dec 20, 2021
fa56e0f
Move lspconfig to plugins/init.lua.
hgaiser Dec 21, 2021
6c79344
Add a bunch of language servers, because why not.
hgaiser Dec 21, 2021
15f47ac
Show gitignored files in nvim-tree.
hgaiser Dec 22, 2021
8b5604d
Configure lua LSP to ignore vim error.
hgaiser Dec 28, 2021
d2077dc
Fix deprecated code.
hgaiser Jan 1, 2022
bf2d060
Improve startuptime for rust-analyzer.
hgaiser Jan 1, 2022
5a38368
Add python vsnippet.
hgaiser Jan 12, 2022
d501b4d
Use stdpath to set vsnip dir.
hgaiser Jan 12, 2022
4a53ce8
Remove redundant require.
hgaiser Jan 12, 2022
2ff1b5f
Move packer_compiled.lua to data dir.
hgaiser Jan 12, 2022
7904b29
Use latest vim-sleuth again.
hgaiser Jan 12, 2022
7e0ed64
Correct some nvim-tree colors.
hgaiser Jan 12, 2022
71a43f7
Make nvim-tree mappings silent.
hgaiser Jan 12, 2022
7d77321
Give in, use gruvbox white.
hgaiser Jan 17, 2022
307dfed
Tag gitsigns, as main is broken.
hgaiser Feb 1, 2022
cf6f138
Add JsonFormat command.
hgaiser Feb 15, 2022
a8170c7
Merge branch 'lua'
hgaiser Mar 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions coc-settings.json

This file was deleted.

23 changes: 0 additions & 23 deletions colors/gruvbox-custom.vim

This file was deleted.

7 changes: 7 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Common settings.
require('utils')
require('settings')
require('maps')

-- Load plugins and their settings.
require('plugins')
198 changes: 0 additions & 198 deletions init.vim

This file was deleted.

25 changes: 0 additions & 25 deletions install

This file was deleted.

23 changes: 23 additions & 0 deletions lua/maps.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-- Map K to split line.
utils.map { 'n', 'K', 'i<CR><Esc>==' }

-- Alignment extension.
utils.map { 'x', 'ga', '<Plug>(EasyAlign)' }
utils.map { 'n', 'ga', '<Plug>(EasyAlign)' }

-- Allow pasting multiple times without yanking the replaced text.
utils.map { 'x', 'p', 'pgvy' }

vim.cmd([[
" 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>'
]])

-- Remap Ctrl+w, <hjkl> to Ctrl+<hjkl>
utils.map { 'n', '<c-h>', '<c-w>h' }
utils.map { 'n', '<c-j>', '<c-w>j' }
utils.map { 'n', '<c-k>', '<c-w>k' }
utils.map { 'n', '<c-l>', '<c-w>l' }
9 changes: 9 additions & 0 deletions lua/plugins/gitsigns.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require('gitsigns').setup {
signs = {
add = {hl = 'GitSignsAdd' , text = '▌', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
change = {hl = 'GitSignsChange', text = '▌', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
delete = {hl = 'GitSignsDelete', text = '▁', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
topdelete = {hl = 'GitSignsDelete', text = '▁', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
changedelete = {hl = 'GitSignsChange', text = '▌', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
},
}
22 changes: 22 additions & 0 deletions lua/plugins/gruvbox.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
vim.o.background = 'dark'
vim.g.gruvbox_sign_column = 'bg0'
vim.g.gruvbox_contrast_dark = 'hard'
vim.opt.termguicolors = true

vim.cmd([[
colorscheme gruvbox

" Show operators (+, -, =, etc.) in blue for easier reading.
hi link Operator GruvboxBlue

" Show selected tab in darker color.
hi TabLineSel guibg=GruvboxBg0

" Change color of nvim-tree.
hi! link NvimTreeEmptyFolderName GruvboxAqua
hi! link NvimTreeFolderName GruvboxAqua
hi! link NvimTreeOpenedFolderName GruvboxAqua
hi! link NvimTreeRootFolder GruvboxGreen
hi! link NvimTreeGitDirty GruvboxOrange
hi! link NvimTreeExecFile GruvboxGreen
]])
1 change: 1 addition & 0 deletions lua/plugins/impatient.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('impatient').enable_profile()
Loading