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

Lua #2

Merged
merged 2 commits into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

# Introduction

![Dashboard](./shots/dashboard.jpg)
![Dashboard](./shots/dashboard.png)

![Telescope](./shots/telescope.jpg)
![Telescope](./shots/telescope.png)

![Coding](./shots/coding.jpg)
![Coding](./shots/coding.png)

This is my neovim's configuration.

Expand Down
26 changes: 13 additions & 13 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ set completeopt=menuone,noselect

" Vim-Plug init
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ~/.config/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ~/.config/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
endif

" Vim-Plug Plugins
Expand Down Expand Up @@ -148,25 +148,25 @@ Plug 'kristijanhusak/orgmode.nvim'

call plug#end()

colorscheme nord
colorscheme onehalflight

" Edit Setting
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g'\"" | endif
autocmd! bufwritepost $MYVIMRC source $MYVIMRC

augroup fmt
autocmd!
let blacklist = ['org']
autocmd BufWritePre * if index(blacklist, &ft) < 0 | undojoin | Neoformat
autocmd!
let blacklist = ['org', 'cat']
autocmd BufWritePre * if index(blacklist, &ft) < 0 | undojoin | Neoformat
augroup END

augroup RELOAD
autocmd!
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
autocmd!
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o

" Automatically deletes all trailing whitespace on save.
autocmd BufWritePre * %s/\s\+$//e
" Automatically deletes all trailing whitespace on save.
autocmd BufWritePre * %s/\s\+$//e
augroup END

" Automatically change work directory
Expand Down Expand Up @@ -314,7 +314,7 @@ autocmd FileType go nmap <leader>mdt :GoDebugStop<cr>

" Enable type inlay hints
autocmd CursorMoved,InsertLeave,BufEnter,BufWinEnter,TabEnter,BufWritePost *
\ lua require'lsp_extensions'.inlay_hints{ prefix = ' >> ', highlight = "Comment", enabled = {"TypeHint", "ChainingHint", "ParameterHint"} }
\ lua require'lsp_extensions'.inlay_hints{ prefix = ' >> ', highlight = "Comment", enabled = {"TypeHint", "ChainingHint", "ParameterHint"} }
autocmd FileType rust nmap <leader>mbb :Cbuild<cr>
autocmd FileType rust nmap <leader>mbt :Ctest<cr>
autocmd FileType rust nmap <leader>mbr :Crun<cr>
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions plugin/galaxyline.lua → plugin/nerdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ gl.short_line_list = {
-- VistaPlugin = extension.vista_nearest

local colors = {
bg = '#2e3440',
line_bg = '#3b4252',
fg = '#eceff4',
bg = '#fafafa',
line_bg = '#f0f0f0',
fg = '#2e3440',
fg_green = '#8fbcbb',

yellow = '#ebcb8b',
Expand All @@ -24,7 +24,7 @@ local colors = {
blue = '#81a1c1',
red = '#bf616a',

mode_bg = '#3b4252'
mode_bg = '#f0f0f0'
}

local function lsp_status(status)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed shots/coding.jpg
Binary file not shown.
Binary file added shots/coding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed shots/dashboard.jpg
Binary file not shown.
Binary file added shots/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed shots/telescope.jpg
Binary file not shown.
Binary file added shots/telescope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.