diff --git a/coc-settings.json b/coc-settings.json index 1248d26..d59239f 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -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": { "": "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 } diff --git a/init.vim b/init.vim index 3120c0e..7b483d3 100644 --- a/init.vim +++ b/init.vim @@ -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 :NvimTreeFindFile nmap NERDCommenterToggle vmap NERDCommenterToggle +" saving with Ctrl+s +nnoremap :update +inoremap :update +vnoremap :updategv " gv to preserve visual selection " show uncommited git changes in current part of the code -nnoremap :CocCommand git.chunkInfo +nnoremap :CocCommand git.chunkInfo "theme configuration syntax enable