mirror of https://github.com/E-Almqvist/dotfiles
commit
b7f97b1245
@ -0,0 +1,12 @@ |
|||||||
|
// Place your key bindings in this file to override the defaultsauto[] |
||||||
|
[ |
||||||
|
{ |
||||||
|
"key": "ctrl+w", |
||||||
|
"command": "-workbench.action.closeActiveEditor" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"key": "ctrl+w", |
||||||
|
"command": "-workbench.action.terminal.killEditor", |
||||||
|
"when": "terminalEditorFocus && terminalFocus && terminalHasBeenCreated && resourceScheme == 'vscode-terminal' || terminalEditorFocus && terminalFocus && terminalProcessSupported && resourceScheme == 'vscode-terminal'" |
||||||
|
} |
||||||
|
] |
@ -0,0 +1,71 @@ |
|||||||
|
{ |
||||||
|
"telemetry.telemetryLevel": "off", |
||||||
|
"editor.insertSpaces": false, |
||||||
|
"editor.detectIndentation": false, |
||||||
|
"explorer.confirmDelete": false, |
||||||
|
"git.openRepositoryInParentFolders": "never", |
||||||
|
"workbench.editorAssociations": { |
||||||
|
"*.sqlite": "default" |
||||||
|
}, |
||||||
|
"workbench.startupEditor": "none", |
||||||
|
"editor.minimap.enabled": false, |
||||||
|
"breadcrumbs.enabled": false, |
||||||
|
"editor.renderWhitespace": "none", |
||||||
|
"window.menuBarVisibility": "toggle", |
||||||
|
"workbench.activityBar.visible": false, |
||||||
|
"editor.fontFamily": "Fira Code, 'Droid Sans Mono', 'monospace', monospace", |
||||||
|
"window.zoomLevel": -1, |
||||||
|
"jupyter.askForKernelRestart": false, |
||||||
|
"vim.normalModeKeyBindingsNonRecursive": [ |
||||||
|
{ |
||||||
|
"before": ["u"], |
||||||
|
"commands": ["undo"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["c-r"], |
||||||
|
"commands": ["redo"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["<leader>", "t"], |
||||||
|
"commands": ["workbench.action.toggleSidebarVisibility"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["g", "s"], |
||||||
|
"commands": ["workbench.action.showAllSymbols"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["g", "a"], |
||||||
|
"commands": ["references-view.findReferences"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["g", "r"], |
||||||
|
"commands": ["editor.action.rename"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["g", "w"], |
||||||
|
"commands": ["editor.emmet.action.wrapWithAbbreviation"] |
||||||
|
} |
||||||
|
], |
||||||
|
"vim.visualModeKeyBindingsNonRecursive": [ |
||||||
|
{ |
||||||
|
"before": ["g", "r"], |
||||||
|
"commands": ["git.revertSelectedRanges"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["g", "w"], |
||||||
|
"commands": ["editor.emmet.action.wrapWithAbbreviation"] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"before": ["c-<leader>"], |
||||||
|
"commands": ["editor.action.triggerSuggest"] |
||||||
|
} |
||||||
|
], |
||||||
|
"editor.mouseWheelScrollSensitivity": 2, |
||||||
|
"editor.smoothScrolling": true, |
||||||
|
"workbench.list.smoothScrolling": true, |
||||||
|
"terminal.integrated.smoothScrolling": true, |
||||||
|
"editor.cursorSmoothCaretAnimation": "on", |
||||||
|
"[latex]": { |
||||||
|
"editor.defaultFormatter": "mathematic.vscode-latex" |
||||||
|
}, |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
-- Otherwise the plugin wont work |
||||||
|
vim.cmd("filetype plugin indent on") |
||||||
|
|
||||||
|
-- Viewer options: One may configure the viewer either by specifying a built-in viewer method: |
||||||
|
vim.g.vimtex_view_method = "zathura" |
||||||
|
|
||||||
|
-- Or with a generic interface: |
||||||
|
-- vim.g.vimtex_view_general_viewer = "okular" |
||||||
|
-- vim.g.vimtex_view_general_options = "--unique file:@pdf#src:@line@tex" |
||||||
|
|
||||||
|
-- VimTeX uses latexmk as the default compiler backend. If you use it, which is strongly recommended, you probably don"t need to configure anything. If you want another compiler backend, you can change it as follows. The list of supported backends and further explanation is provided in the documentation, see ":help vimtex-compiler". |
||||||
|
vim.g.vimtex_compiler_method = "latexrun" |
||||||
|
|
||||||
|
-- Most VimTeX mappings rely on localleader and this can be changed with the following line. The default is usually fine and is the symbol "\". |
||||||
|
vim.g.maplocalleader = "," |
||||||
|
|
||||||
|
-- Set the TEX flavor to 'latex' |
||||||
|
vim.g.tex_flavor = 'latex' |
||||||
|
|
||||||
|
-- Disable vimtex quickfix mode |
||||||
|
vim.g.vimtex_quickfix_mode = 0 |
||||||
|
|
||||||
|
-- Set conceallevel to 1 |
||||||
|
vim.o.conceallevel = 1 |
||||||
|
|
||||||
|
-- Configure TEX conceal settings |
||||||
|
vim.g.tex_conceal = 'abdmg' |
||||||
|
|
||||||
|
-- Automatically update the PDF when saving a TeX file |
||||||
|
vim.api.nvim_exec([[ |
||||||
|
augroup auto_update_pdf |
||||||
|
autocmd! |
||||||
|
autocmd BufWritePost *.tex VimtexCompile |
||||||
|
augroup END |
||||||
|
]], true) |
Loading…
Reference in new issue