add Perl, small cleanup and updates

This commit is contained in:
Szwendacz99 2022-10-10 19:35:17 +02:00
parent b0bbb71043
commit 09f0c9238c
2 changed files with 22 additions and 45 deletions

View file

@ -1,6 +1,6 @@
{
"codeLens.enable": true,
"codeLens.position": "eol",
"codeLens.position": "right_align",
"coc.preferences.extensionUpdateCheck": "daily",
"coc.preferences.enableMessageDialog": true,
"coc.preferences.formatOnType": true,
@ -18,25 +18,20 @@
"jsonc"
],
"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": {
"rounded": true,
"border": true
},
"diagnostic.format": "%message [%source]",
"diagnostic.format": "[%severity] %message [%source]",
"diagnostic.virtualText": true,
"diagnostic.level": "hint",
"diagnostic.checkCurrentLine": true,
"diagnostic.separateRelatedInformationAsDiagnostics": true,
"eslint.autoFixOnSave": true,
"eslint.format.enable": true,
"eslint.packageManager": "yarn",
"git.addGBlameToVirtualText": true,
"git.blameUseRealTime": true,
"hover.floatConfig": {
"rounded": true,
"border": true
@ -47,24 +42,17 @@
"list.insertMappings": {
"<C-c>": "do:exit"
},
"list.source.grep.useLiteral": false,
"list.source.grep.defaultArgs": [
"--ignore-case"
],
"markdownlint.config": {
"default": true,
"line-length": false
},
"python.formatting.provider": "autopep8",
"python.formatting.provider": "yapf",
"python.linting.enabled": true,
"python.analysis.diagnosticMode": "workspace",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.pycodestyle": true,
"python.linting.pylamaEnabled": true,
"python.linting.banditEnabled": true,
"python.linting.pycodestyleEnabled": true,
"python.linting.mypyEnabled": false,
"python.linting.pytypeEnabled": true,
"python.analysis.typeCheckingMode": "basic",
"semanticTokens.enable": true,
"signature.target": "echo",
"suggest.detailField": "abbr",
@ -79,31 +67,13 @@
"rounded": 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,
"snippets.ultisnips.enable": false,
"snippets.extends": {
"javascriptreact": [
"javascript"
],
"typescript": [
"javascript"
]
},
"languageserver": {
"bash": {
"command": "bash-language-server",
"args": ["start"],
"filetypes": ["sh"]
}
},
"git.enableGutters": true
"bash": {
"command": "bash-language-server",
"args": ["start"],
"filetypes": ["sh"]
}
},
"git.enableGutters": true
}

View file

@ -4,6 +4,7 @@ call plug#begin()
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
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 'preservim/nerdcommenter'
Plug 'mhinz/vim-startify'
@ -16,6 +17,8 @@ Plug 'vim-airline/vim-airline-themes'
Plug 'honza/vim-snippets'
Plug 'itchyny/vim-cursorword'
Plug 'sheerun/vim-polyglot'
" themes
Plug 'navarasu/onedark.nvim'
Plug 'ellisonleao/gruvbox.nvim'
Plug 'dracula/vim'
@ -51,8 +54,12 @@ nnoremap <C-e> :NvimTreeFindFile<CR>
nmap <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
nnoremap <C-s> :CocCommand git.chunkInfo<CR>
nnoremap <C-g> :CocCommand git.chunkInfo<CR>
"theme configuration
syntax enable