add Perl, small cleanup and updates
This commit is contained in:
parent
b0bbb71043
commit
09f0c9238c
2 changed files with 22 additions and 45 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"codeLens.enable": true,
|
"codeLens.enable": true,
|
||||||
"codeLens.position": "eol",
|
"codeLens.position": "right_align",
|
||||||
"coc.preferences.extensionUpdateCheck": "daily",
|
"coc.preferences.extensionUpdateCheck": "daily",
|
||||||
"coc.preferences.enableMessageDialog": true,
|
"coc.preferences.enableMessageDialog": true,
|
||||||
"coc.preferences.formatOnType": true,
|
"coc.preferences.formatOnType": true,
|
||||||
|
@ -18,25 +18,20 @@
|
||||||
"jsonc"
|
"jsonc"
|
||||||
],
|
],
|
||||||
"coc.source.file.ignoreHidden": false,
|
"coc.source.file.ignoreHidden": false,
|
||||||
"clangd.path": "~/bin/clangd",
|
|
||||||
"clangd.arguments": [
|
|
||||||
"--query-driver=/usr/bin/clang++",
|
|
||||||
"--header-insertion-decorators=false",
|
|
||||||
"--background-index"
|
|
||||||
],
|
|
||||||
"deno.importMap": "./import_map.json",
|
|
||||||
"diagnostic.floatConfig": {
|
"diagnostic.floatConfig": {
|
||||||
"rounded": true,
|
"rounded": true,
|
||||||
"border": true
|
"border": true
|
||||||
},
|
},
|
||||||
"diagnostic.format": "%message [%source]",
|
"diagnostic.format": "[%severity] %message [%source]",
|
||||||
"diagnostic.virtualText": true,
|
"diagnostic.virtualText": true,
|
||||||
|
"diagnostic.level": "hint",
|
||||||
"diagnostic.checkCurrentLine": true,
|
"diagnostic.checkCurrentLine": true,
|
||||||
"diagnostic.separateRelatedInformationAsDiagnostics": true,
|
"diagnostic.separateRelatedInformationAsDiagnostics": true,
|
||||||
"eslint.autoFixOnSave": true,
|
"eslint.autoFixOnSave": true,
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
"eslint.packageManager": "yarn",
|
"eslint.packageManager": "yarn",
|
||||||
"git.addGBlameToVirtualText": true,
|
"git.addGBlameToVirtualText": true,
|
||||||
|
"git.blameUseRealTime": true,
|
||||||
"hover.floatConfig": {
|
"hover.floatConfig": {
|
||||||
"rounded": true,
|
"rounded": true,
|
||||||
"border": true
|
"border": true
|
||||||
|
@ -47,24 +42,17 @@
|
||||||
"list.insertMappings": {
|
"list.insertMappings": {
|
||||||
"<C-c>": "do:exit"
|
"<C-c>": "do:exit"
|
||||||
},
|
},
|
||||||
"list.source.grep.useLiteral": false,
|
"python.formatting.provider": "yapf",
|
||||||
"list.source.grep.defaultArgs": [
|
|
||||||
"--ignore-case"
|
|
||||||
],
|
|
||||||
"markdownlint.config": {
|
|
||||||
"default": true,
|
|
||||||
"line-length": false
|
|
||||||
},
|
|
||||||
"python.formatting.provider": "autopep8",
|
|
||||||
"python.linting.enabled": true,
|
"python.linting.enabled": true,
|
||||||
"python.analysis.diagnosticMode": "workspace",
|
"python.analysis.diagnosticMode": "workspace",
|
||||||
"python.linting.pylintEnabled": false,
|
"python.linting.pylintEnabled": false,
|
||||||
"python.linting.flake8Enabled": true,
|
"python.linting.flake8Enabled": true,
|
||||||
"python.linting.pycodestyle": true,
|
|
||||||
"python.linting.pylamaEnabled": true,
|
"python.linting.pylamaEnabled": true,
|
||||||
"python.linting.banditEnabled": true,
|
"python.linting.banditEnabled": true,
|
||||||
|
"python.linting.pycodestyleEnabled": true,
|
||||||
"python.linting.mypyEnabled": false,
|
"python.linting.mypyEnabled": false,
|
||||||
"python.linting.pytypeEnabled": true,
|
"python.linting.pytypeEnabled": true,
|
||||||
|
"python.analysis.typeCheckingMode": "basic",
|
||||||
"semanticTokens.enable": true,
|
"semanticTokens.enable": true,
|
||||||
"signature.target": "echo",
|
"signature.target": "echo",
|
||||||
"suggest.detailField": "abbr",
|
"suggest.detailField": "abbr",
|
||||||
|
@ -79,31 +67,13 @@
|
||||||
"rounded": true,
|
"rounded": true,
|
||||||
"border": true
|
"border": true
|
||||||
},
|
},
|
||||||
"sumneko-lua.enableNvimLuaDev": true,
|
|
||||||
"Lua.completion.callSnippet": "Both",
|
|
||||||
"Lua.completion.postfix": ".",
|
|
||||||
"Lua.runtime.version": "LuaJIT",
|
|
||||||
"Lua.telemetry.enable": false,
|
|
||||||
"Lua.diagnostics.globals": [
|
|
||||||
"vim",
|
|
||||||
"jit"
|
|
||||||
],
|
|
||||||
"snippet.choicesMenuPicker": true,
|
"snippet.choicesMenuPicker": true,
|
||||||
"snippets.ultisnips.enable": false,
|
|
||||||
"snippets.extends": {
|
|
||||||
"javascriptreact": [
|
|
||||||
"javascript"
|
|
||||||
],
|
|
||||||
"typescript": [
|
|
||||||
"javascript"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"languageserver": {
|
"languageserver": {
|
||||||
"bash": {
|
"bash": {
|
||||||
"command": "bash-language-server",
|
"command": "bash-language-server",
|
||||||
"args": ["start"],
|
"args": ["start"],
|
||||||
"filetypes": ["sh"]
|
"filetypes": ["sh"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"git.enableGutters": true
|
"git.enableGutters": true
|
||||||
}
|
}
|
||||||
|
|
9
init.vim
9
init.vim
|
@ -4,6 +4,7 @@ call plug#begin()
|
||||||
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
|
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
|
||||||
Plug 'kyazdani42/nvim-tree.lua'
|
Plug 'kyazdani42/nvim-tree.lua'
|
||||||
|
|
||||||
|
Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
Plug 'mhinz/vim-startify'
|
Plug 'mhinz/vim-startify'
|
||||||
|
@ -16,6 +17,8 @@ Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
Plug 'itchyny/vim-cursorword'
|
Plug 'itchyny/vim-cursorword'
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
" themes
|
||||||
Plug 'navarasu/onedark.nvim'
|
Plug 'navarasu/onedark.nvim'
|
||||||
Plug 'ellisonleao/gruvbox.nvim'
|
Plug 'ellisonleao/gruvbox.nvim'
|
||||||
Plug 'dracula/vim'
|
Plug 'dracula/vim'
|
||||||
|
@ -51,8 +54,12 @@ nnoremap <C-e> :NvimTreeFindFile<CR>
|
||||||
nmap <C-_> <plug>NERDCommenterToggle
|
nmap <C-_> <plug>NERDCommenterToggle
|
||||||
vmap <C-_> <plug>NERDCommenterToggle
|
vmap <C-_> <plug>NERDCommenterToggle
|
||||||
|
|
||||||
|
" saving with Ctrl+s
|
||||||
|
nnoremap <silent><C-s> :update<cr>
|
||||||
|
inoremap <silent><C-s> <c-o>:update<cr>
|
||||||
|
vnoremap <silent><c-s> <c-c>:update<cr>gv " gv to preserve visual selection
|
||||||
" show uncommited git changes in current part of the code
|
" show uncommited git changes in current part of the code
|
||||||
nnoremap <C-s> :CocCommand git.chunkInfo<CR>
|
nnoremap <C-g> :CocCommand git.chunkInfo<CR>
|
||||||
|
|
||||||
"theme configuration
|
"theme configuration
|
||||||
syntax enable
|
syntax enable
|
||||||
|
|
Loading…
Reference in a new issue