Added toggle comment, system clipoard, current line number
This commit is contained in:
34
init.vim
34
init.vim
@@ -1,5 +1,7 @@
|
|||||||
set relativenumber
|
set relativenumber
|
||||||
|
set number
|
||||||
set autoindent
|
set autoindent
|
||||||
|
set clipboard+=unnamedplus " Use system clipboard
|
||||||
set termguicolors
|
set termguicolors
|
||||||
set cursorline
|
set cursorline
|
||||||
set ts=4 sw=4
|
set ts=4 sw=4
|
||||||
@@ -18,6 +20,8 @@ Plug 'sainnhe/sonokai'
|
|||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
"syntax highlighting"
|
"syntax highlighting"
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
|
"shortcut to comment multiple lines"
|
||||||
|
Plug 'numToStr/Comment.nvim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||||
@@ -33,15 +37,15 @@ let g:NERDTreeGitStatusWithFlags = 1
|
|||||||
"let g:WebDevIconsUnicodeDecorateFolderNodes = 1
|
"let g:WebDevIconsUnicodeDecorateFolderNodes = 1
|
||||||
"let g:NERDTreeGitStatusNodeColorization = 1
|
"let g:NERDTreeGitStatusNodeColorization = 1
|
||||||
"let g:NERDTreeColorMapCustom = {
|
"let g:NERDTreeColorMapCustom = {
|
||||||
"\ "Staged" : "#0ee375",
|
"\ "Staged" : "#0ee375",
|
||||||
"\ "Modified" : "#d9bf91",
|
"\ "Modified" : "#d9bf91",
|
||||||
"\ "Renamed" : "#51C9FC",
|
"\ "Renamed" : "#51C9FC",
|
||||||
"\ "Untracked" : "#FCE77C",
|
"\ "Untracked" : "#FCE77C",
|
||||||
"\ "Unmerged" : "#FC51E6",
|
"\ "Unmerged" : "#FC51E6",
|
||||||
"\ "Dirty" : "#FFBD61",
|
"\ "Dirty" : "#FFBD61",
|
||||||
"\ "Clean" : "#87939A",
|
"\ "Clean" : "#87939A",
|
||||||
"\ "Ignored" : "#808080"
|
"\ "Ignored" : "#808080"
|
||||||
"\ }
|
"\ }
|
||||||
|
|
||||||
let g:NERDTreeIgnore = ['^node_modules$']
|
let g:NERDTreeIgnore = ['^node_modules$']
|
||||||
|
|
||||||
@@ -57,7 +61,7 @@ lua << EOF
|
|||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
-- Install parsers for languages you use
|
-- Install parsers for languages you use
|
||||||
ensure_installed = { "c", "cpp", "python", "lua", "vim", "go" },
|
ensure_installed = { "c", "cpp", "python", "lua", "vim", "go" },
|
||||||
|
|
||||||
-- Install all maintained parsers
|
-- Install all maintained parsers
|
||||||
-- ensure_installed = "all",
|
-- ensure_installed = "all",
|
||||||
|
|
||||||
@@ -66,12 +70,12 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Indentation based on treesitter (experimental)
|
-- Indentation based on treesitter (experimental)
|
||||||
indent = {
|
indent = {
|
||||||
enable = true
|
enable = true
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Incremental selection based on the syntax tree
|
-- Incremental selection based on the syntax tree
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
@@ -81,6 +85,8 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
scope_incremental = "grc",
|
scope_incremental = "grc",
|
||||||
node_decremental = "grm",
|
node_decremental = "grm",
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
EOF
|
|
||||||
|
require('Comment').setup()
|
||||||
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user