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