Compare commits
No commits in common. "c523a47ecaf325deb5fc297907ca8943d9b3168f" and "50251893e19daa1f158bcb7eebf082dd068966d2" have entirely different histories.
c523a47eca
...
50251893e1
25 changed files with 0 additions and 672 deletions
|
@ -1,73 +0,0 @@
|
||||||
snippet package
|
|
||||||
package $1;
|
|
||||||
$0
|
|
||||||
endpackage
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet import
|
|
||||||
import $1 :: *;
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet interface
|
|
||||||
interface $1;
|
|
||||||
$0
|
|
||||||
endinterface
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet module
|
|
||||||
module mk$1($2);
|
|
||||||
$0
|
|
||||||
endmodule
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet rule
|
|
||||||
rule $1($2);
|
|
||||||
$0
|
|
||||||
endrule
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet Action
|
|
||||||
method Action $1($2);
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet ActionValue
|
|
||||||
method ActionValue#($1) $2($3);
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet Value
|
|
||||||
method $1 $2($3);
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet Reg
|
|
||||||
Reg#($1) $2 <- mkReg($3);
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet begin
|
|
||||||
begin
|
|
||||||
$0
|
|
||||||
end
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet if
|
|
||||||
if ($1)
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet tb
|
|
||||||
package $1Tb;
|
|
||||||
import $1 :: *;
|
|
||||||
|
|
||||||
module mk$1Tb();
|
|
||||||
rule test;
|
|
||||||
$display("Test here");
|
|
||||||
$finish();
|
|
||||||
endrule
|
|
||||||
endmodule
|
|
||||||
endpackage
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet matches
|
|
||||||
case ($1) matches
|
|
||||||
tagged $2:
|
|
||||||
$0
|
|
||||||
endcase
|
|
||||||
endsnippet
|
|
|
@ -1,9 +0,0 @@
|
||||||
snippet main
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
|
||||||
printf("Hello, World!\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
endsnippet
|
|
|
@ -1,43 +0,0 @@
|
||||||
snippet main
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
cout << "Hello, World!" << endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet oshh
|
|
||||||
#define OSH_H_IMPLEMENTATION
|
|
||||||
#include "osh.h"
|
|
||||||
|
|
||||||
using namespace osh;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
println("Hello, World!");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet oshh
|
|
||||||
#define OSH_H_IMPLEMENTATION
|
|
||||||
#include "osh.h"
|
|
||||||
|
|
||||||
using namespace osh;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
println("Hello, World!");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet fori
|
|
||||||
for (int $1 = $2; $1 < $3; $1++) {
|
|
||||||
$0
|
|
||||||
}
|
|
||||||
endsnippet
|
|
|
@ -1,6 +0,0 @@
|
||||||
snippet main
|
|
||||||
module Main where
|
|
||||||
|
|
||||||
main :: IO ()
|
|
||||||
main = putStrLn "Hello, World"
|
|
||||||
endsnippet
|
|
|
@ -1,14 +0,0 @@
|
||||||
snippet html
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>$1</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<h1>$1</h1>
|
|
||||||
$0
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
endsnippet
|
|
|
@ -1,27 +0,0 @@
|
||||||
snippet latex
|
|
||||||
TEX := $(wildcard *.tex)
|
|
||||||
|
|
||||||
$1.pdf: ${TEX}
|
|
||||||
pdflatex -jobname=$1 $^
|
|
||||||
pdflatex -jobname=$1 $^ # Fixed toc
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf *.aux *.log *.pdf
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet cpp
|
|
||||||
CXXFLAGS := -ggdb -std=c++20 -I.
|
|
||||||
|
|
||||||
$1: $1.cpp
|
|
||||||
$(CXX) $(CXXFLAGS) -o $@ $^
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet bsv
|
|
||||||
SRC := $(wildcard *.bsv)
|
|
||||||
|
|
||||||
$1: $1.bo
|
|
||||||
bsc -aggressive-conditions -u -sim -e mk$1 -o $@
|
|
||||||
|
|
||||||
$1.bo: $1.bsv $(SRC)
|
|
||||||
bsc -aggressive-conditions -u -sim -g mk$1 $<
|
|
||||||
endsnippet
|
|
|
@ -1,63 +0,0 @@
|
||||||
snippet doc
|
|
||||||
\documentclass[a4paper]{article}
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
||||||
$0
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet begin
|
|
||||||
\begin{$1}
|
|
||||||
$0
|
|
||||||
\end{$1}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet code
|
|
||||||
{\ttfamily $1}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet color
|
|
||||||
{\color{$1} $2}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet table
|
|
||||||
\begin{tabular}{ $1 }
|
|
||||||
$2 & $3 \\\\
|
|
||||||
cell4 & cell5 \\\\
|
|
||||||
\end{tabular}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet multicols
|
|
||||||
\begin{multicols}{2}
|
|
||||||
Now, we are adding some text here to understand how multiple columns will come up.
|
|
||||||
|
|
||||||
\columnbreak
|
|
||||||
|
|
||||||
This is again some new text here. Just to show you how the text is placed
|
|
||||||
\end{multicols}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet newcommand
|
|
||||||
\newcommand{$1}[$2]{$0}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet arraystretch
|
|
||||||
\renewcommand*{\arraystretch}{$1}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet task
|
|
||||||
% Aufgabe $1
|
|
||||||
\begin{task}[points=auto]{$2}\label{ex:H$1}
|
|
||||||
$0
|
|
||||||
\end{task}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet subtask
|
|
||||||
% Teilaufgabe $1
|
|
||||||
\begin{subtask*}[points=$3]{$2}\label{ex:H$1}
|
|
||||||
$0
|
|
||||||
\end{subtask*}
|
|
||||||
endsnippet
|
|
|
@ -1,63 +0,0 @@
|
||||||
snippet doc
|
|
||||||
\documentclass[a4paper]{article}
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
||||||
$0
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet begin
|
|
||||||
\begin{$1}
|
|
||||||
$0
|
|
||||||
\end{$1}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet code
|
|
||||||
{\ttfamily $1}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet color
|
|
||||||
{\color{$1} $2}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet table
|
|
||||||
\begin{tabular}{ c | c }
|
|
||||||
cell1 & cell2 \\\\
|
|
||||||
cell3 & cell4 \\\\
|
|
||||||
\end{tabular}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet multicols
|
|
||||||
\begin{multicols}{2}
|
|
||||||
Now, we are adding some text here to understand how multiple columns will come up.
|
|
||||||
|
|
||||||
\columnbreak
|
|
||||||
|
|
||||||
This is again some new text here. Just to show you how the text is placed
|
|
||||||
\end{multicols}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet newcommand
|
|
||||||
\newcommand{$1}[$2]{$0}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet arraystretch
|
|
||||||
\renewcommand*{\arraystretch}{$1}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet task
|
|
||||||
% Aufgabe $1
|
|
||||||
\begin{task}[points=auto]{$2}\label{ex:H$1}
|
|
||||||
$0
|
|
||||||
\end{task}
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet subtask
|
|
||||||
% Teilaufgabe $1
|
|
||||||
\begin{subtask*}[points=$3]{$2}\label{ex:H$1}
|
|
||||||
$0
|
|
||||||
\end{subtask*}
|
|
||||||
endsnippet
|
|
|
@ -1,4 +0,0 @@
|
||||||
autocmd colorscheme * highlight EndOfBuffer guibg=NONE ctermbg=NONE
|
|
||||||
autocmd colorscheme * highlight Normal guibg=NONE ctermbg=NONE
|
|
||||||
autocmd colorscheme * highlight NonText guibg=NONE ctermbg=NONE
|
|
||||||
colorscheme desert
|
|
|
@ -1,6 +0,0 @@
|
||||||
runtime plugins.vim
|
|
||||||
runtime mappings.vim
|
|
||||||
runtime settings.vim
|
|
||||||
runtime spelling.vim
|
|
||||||
runtime colors.vim
|
|
||||||
runtime qt.vim
|
|
|
@ -1,24 +0,0 @@
|
||||||
let maplocalleader = ","
|
|
||||||
let mapleader = ','
|
|
||||||
let VM_leader = ','
|
|
||||||
|
|
||||||
noremap <leader>/ :Commentary<cr>
|
|
||||||
|
|
||||||
" noremap <F4> :make!<cr>
|
|
||||||
" noremap <F3> :! ./%<cr>
|
|
||||||
|
|
||||||
noremap <A-f> :Files<cr>
|
|
||||||
noremap <A-b> :Buffers<cr>
|
|
||||||
|
|
||||||
noremap <A-t> :terminal<cr>
|
|
||||||
|
|
||||||
noremap <A-g> :Git<cr>
|
|
||||||
|
|
||||||
noremap <A-n> :NERDTreeToggle<cr>
|
|
||||||
|
|
||||||
nnoremap <localleader>lt :call vimtex#fzf#run()<cr>
|
|
||||||
|
|
||||||
tnoremap <C-w> <C-\><C-n><C-w>
|
|
||||||
|
|
||||||
vnoremap J :m '>+1<CR>gv=gv
|
|
||||||
vnoremap K :m '<-2<CR>gv=gv
|
|
|
@ -1,9 +0,0 @@
|
||||||
function! s:insert_gates()
|
|
||||||
let gatename = substitute(toupper(expand("%:t")), "\\.", "_", "g")
|
|
||||||
execute "normal! i#ifndef " . gatename
|
|
||||||
execute "normal! o#define " . gatename . " "
|
|
||||||
execute "normal! Go#endif /* " . gatename . " */"
|
|
||||||
normal! kk
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
autocmd BufNewFile *.{h,hpp} call <SID>insert_gates()
|
|
|
@ -1,94 +0,0 @@
|
||||||
local dap = require("dap")
|
|
||||||
local dapui = require("dapui")
|
|
||||||
|
|
||||||
dapui.setup({
|
|
||||||
layouts = {
|
|
||||||
{
|
|
||||||
position = "left",
|
|
||||||
size = 0.3,
|
|
||||||
elements = {
|
|
||||||
{ id = "scopes", size = 0.25 },
|
|
||||||
"stacks",
|
|
||||||
"watches",
|
|
||||||
"breakpoints",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
position = "bottom",
|
|
||||||
size = 20,
|
|
||||||
elements = {
|
|
||||||
"repl",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
dap.adapters.lldb = {
|
|
||||||
type = 'server',
|
|
||||||
host = '127.0.0.1',
|
|
||||||
port = "${port}",
|
|
||||||
executable = {
|
|
||||||
command = '/usr/bin/lldb-dap',
|
|
||||||
args = { "--port", "${port}" },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dap.configurations.rust = {
|
|
||||||
{
|
|
||||||
name = "Attach to Remote via GDB Remote",
|
|
||||||
type = "lldb",
|
|
||||||
request = "launch",
|
|
||||||
program = function()
|
|
||||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
|
||||||
end,
|
|
||||||
cwd = "${workspaceFolder}",
|
|
||||||
stopOnEntry = false,
|
|
||||||
|
|
||||||
initCommands = {
|
|
||||||
"gdb-remote localhost:1234",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- dap.configurations.rust = {
|
|
||||||
-- {
|
|
||||||
-- name = "Launch File",
|
|
||||||
-- type = "codelldb",
|
|
||||||
-- request = "launch",
|
|
||||||
-- program = function()
|
|
||||||
-- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
|
||||||
-- end,
|
|
||||||
-- cwd = '${workspaceFolder}',
|
|
||||||
-- runInTerminal = true,
|
|
||||||
-- stopOnEntry = false,
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<Leader>dc', function() dap.continue() end)
|
|
||||||
vim.keymap.set('n', '<F10>', function() dap.step_over() end)
|
|
||||||
vim.keymap.set('n', '<F11>', function() dap.step_into() end)
|
|
||||||
vim.keymap.set('n', '<F12>', function() dap.step_out() end)
|
|
||||||
vim.keymap.set('n', '<Leader>db', function() dap.toggle_breakpoint() end)
|
|
||||||
vim.keymap.set('n', '<Leader>dl', function() dap.run_last() end)
|
|
||||||
vim.keymap.set('n', '<Leader>du', function() dapui.toggle() end)
|
|
||||||
vim.keymap.set('n', '<Leader>df', function() dapui.float_element('scopes', { enter = true }) end)
|
|
||||||
|
|
||||||
dap.listeners.before.attach.dapui_config = function()
|
|
||||||
dapui.open()
|
|
||||||
end
|
|
||||||
dap.listeners.before.launch.dapui_config = function()
|
|
||||||
dapui.open()
|
|
||||||
end
|
|
||||||
-- dap.listeners.before.event_terminated.dapui_config = function()
|
|
||||||
-- dapui.close()
|
|
||||||
-- end
|
|
||||||
-- dap.listeners.before.event_exited.dapui_config = function()
|
|
||||||
-- dapui.close()
|
|
||||||
-- end
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
|
||||||
pattern = "dapui-repl-*",
|
|
||||||
callback = function()
|
|
||||||
vim.cmd("AnsiEsc")
|
|
||||||
end,
|
|
||||||
})
|
|
|
@ -1,49 +0,0 @@
|
||||||
vim.diagnostic.config({ virtual_text = true })
|
|
||||||
|
|
||||||
local lsp = require('lsp-zero').preset({})
|
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
|
||||||
-- see :help lsp-zero-keybindings
|
|
||||||
-- to learn the available actions
|
|
||||||
lsp.default_keymaps({buffer = bufnr})
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- " (Optional) Configure lua language server for neovim
|
|
||||||
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
|
|
||||||
|
|
||||||
-- You need to setup `cmp` after lsp-zero
|
|
||||||
local cmp = require('cmp')
|
|
||||||
local cmp_action = require('lsp-zero').cmp_action()
|
|
||||||
|
|
||||||
cmp.setup({
|
|
||||||
mapping = {
|
|
||||||
-- `Enter` key to confirm completion
|
|
||||||
['<CR>'] = cmp.mapping.confirm({select = false}),
|
|
||||||
|
|
||||||
-- Ctrl+Space to trigger completion menu
|
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
|
||||||
|
|
||||||
-- Navigate between snippet placeholder
|
|
||||||
['<C-f>'] = cmp_action.luasnip_jump_forward(),
|
|
||||||
['<C-b>'] = cmp_action.luasnip_jump_backward(),
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
lsp.ensure_installed({
|
|
||||||
'ts_ls',
|
|
||||||
})
|
|
||||||
|
|
||||||
local null_ls = require('null-ls')
|
|
||||||
local null_opts = lsp.build_options('null-ls', {})
|
|
||||||
|
|
||||||
null_ls.setup({
|
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
null_opts.on_attach(client, bufnr)
|
|
||||||
--- you can add more stuff here if you need it
|
|
||||||
end,
|
|
||||||
sources = {
|
|
||||||
null_ls.builtins.formatting.black,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
lsp.setup()
|
|
|
@ -1 +0,0 @@
|
||||||
autocmd BufNewFile,BufRead *.asm set filetype=nasm
|
|
|
@ -1,13 +0,0 @@
|
||||||
local rt = require("rust-tools")
|
|
||||||
|
|
||||||
rt.setup({
|
|
||||||
server = {
|
|
||||||
on_attach = function(_, bufnr)
|
|
||||||
-- Hover actions
|
|
||||||
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
|
||||||
|
|
||||||
-- Code action groups
|
|
||||||
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1,11 +0,0 @@
|
||||||
let g:vimtex_view_method = 'zathura'
|
|
||||||
let g:vimtex_compiler_method = 'latexmk'
|
|
||||||
let g:vimtex_quickfix_open_on_warning = 0
|
|
||||||
let g:vimtex_quickfix_mode = 2
|
|
||||||
|
|
||||||
let g:vimtex_compiler_latexmk = {
|
|
||||||
\ 'out_dir' : '.vimtex',
|
|
||||||
\}
|
|
||||||
|
|
||||||
" This is necessary for VimTeX to load properly. The "indent" is optional.
|
|
||||||
" Note that most plugin managers will do this automatically.
|
|
|
@ -1,8 +0,0 @@
|
||||||
local lspconfig = require('lspconfig')
|
|
||||||
|
|
||||||
lspconfig.ts_ls.setup({
|
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
-- Disable tsserver formatting if using prettier/eslint
|
|
||||||
client.server_capabilities.documentFormattingProvider = true
|
|
||||||
end,
|
|
||||||
})
|
|
|
@ -1,42 +0,0 @@
|
||||||
call plug#begin(stdpath('data') . '/plugged')
|
|
||||||
Plug 'preservim/nerdtree'
|
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'vim-syntastic/syntastic'
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
Plug 'tpope/vim-surround'
|
|
||||||
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
||||||
" Plug 'deoplete-plugins/deoplete-clang'
|
|
||||||
" Plug 'deoplete-plugins/deoplete-jedi'
|
|
||||||
" Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
|
|
||||||
" Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install tern'}
|
|
||||||
" Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' }
|
|
||||||
Plug 'mg979/vim-visual-multi'
|
|
||||||
" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
|
||||||
" Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
|
|
||||||
Plug 'luochen1990/rainbow'
|
|
||||||
" Plug 'wlangstroth/vim-racket'
|
|
||||||
Plug 'sirver/ultisnips'
|
|
||||||
Plug 'lervag/vimtex'
|
|
||||||
Plug 'tpope/vim-commentary'
|
|
||||||
|
|
||||||
" LSP Support
|
|
||||||
Plug 'neovim/nvim-lspconfig'
|
|
||||||
Plug 'williamboman/mason.nvim'
|
|
||||||
Plug 'williamboman/mason-lspconfig.nvim'
|
|
||||||
|
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
|
||||||
Plug 'nvimtools/none-ls.nvim'
|
|
||||||
|
|
||||||
" Autocompletion
|
|
||||||
Plug 'hrsh7th/nvim-cmp'
|
|
||||||
Plug 'hrsh7th/cmp-nvim-lsp'
|
|
||||||
Plug 'L3MON4D3/LuaSnip'
|
|
||||||
|
|
||||||
Plug 'VonHeikemen/lsp-zero.nvim', {'branch': 'v2.x'}
|
|
||||||
|
|
||||||
Plug 'simrat39/rust-tools.nvim'
|
|
||||||
|
|
||||||
Plug 'mfussenegger/nvim-dap'
|
|
||||||
Plug 'rcarriga/nvim-dap-ui'
|
|
||||||
Plug 'nvim-neotest/nvim-nio'
|
|
||||||
call plug#end()
|
|
|
@ -1,4 +0,0 @@
|
||||||
if has('gui_running')
|
|
||||||
set guifont="Source Code Pro:h16"
|
|
||||||
colorscheme gruvbox
|
|
||||||
endif
|
|
|
@ -1,54 +0,0 @@
|
||||||
set mouse=a
|
|
||||||
|
|
||||||
set splitbelow
|
|
||||||
set splitright
|
|
||||||
|
|
||||||
set complete+=kspell
|
|
||||||
set completeopt-=preview
|
|
||||||
|
|
||||||
set number
|
|
||||||
set relativenumber
|
|
||||||
|
|
||||||
set expandtab
|
|
||||||
set shiftwidth=4
|
|
||||||
set smarttab
|
|
||||||
set softtabstop=0
|
|
||||||
set tabstop=8
|
|
||||||
|
|
||||||
set listchars=tab:→\ ,trail:-,extends:»,precedes:«,nbsp:+,lead:␣
|
|
||||||
set list
|
|
||||||
|
|
||||||
set scrolloff=5
|
|
||||||
|
|
||||||
autocmd TermOpen,TermEnter * setlocal nonumber norelativenumber nospell nohlsearch
|
|
||||||
|
|
||||||
let g:deoplete#enable_at_startup = 1
|
|
||||||
|
|
||||||
let g:rainbow_active = 1
|
|
||||||
|
|
||||||
let g:syntastic_enable_racket_racket_checker = 1
|
|
||||||
let g:syntastic_cpp_compiler_options = '-std=c++20'
|
|
||||||
let g:syntastic_nasm_nasm_args = '-f elf64'
|
|
||||||
let g:syntastic_python_checkers = ['python']
|
|
||||||
let g:syntastic_tex_lacheck_quiet_messages = { 'regex': '\Vpossible unwanted space at' }
|
|
||||||
|
|
||||||
let g:lsc_auto_map = {
|
|
||||||
\ 'GoToDefinition': '<C-]>',
|
|
||||||
\ 'GoToDefinitionSplit': ['<C-W>]', '<C-W><C-]>'],
|
|
||||||
\ 'FindReferences': 'gr',
|
|
||||||
\ 'NextReference': ',',
|
|
||||||
\ 'PreviousReference': ';',
|
|
||||||
\ 'FindImplementations': 'gI',
|
|
||||||
\ 'FindCodeActions': 'ga',
|
|
||||||
\ 'Rename': 'gR',
|
|
||||||
\ 'ShowHover': v:true,
|
|
||||||
\ 'DocumentSymbol': 'go',
|
|
||||||
\ 'WorkspaceSymbol': 'gS',
|
|
||||||
\ 'SignatureHelp': 'gm',
|
|
||||||
\ 'Completion': 'completefunc',
|
|
||||||
\}
|
|
||||||
let g:lsc_server_commands = {
|
|
||||||
\ 'python': 'pyright-langserver --stdio',
|
|
||||||
\ 'scala': 'metals',
|
|
||||||
\ 'javascript': 'typescript-language-server --stdio'
|
|
||||||
\}
|
|
|
@ -1,4 +0,0 @@
|
||||||
set spelllang=de,en
|
|
||||||
|
|
||||||
autocmd FileType gitcommit setlocal spell spelllang=en
|
|
||||||
autocmd Filetype tex,markdown,mail setlocal linebreak spell spelllang=de
|
|
|
@ -1 +0,0 @@
|
||||||
$pdflatex = 'lualatex --shell-escape %O %S';
|
|
50
_zshrc
50
_zshrc
|
@ -1,50 +0,0 @@
|
||||||
#!/bin/zsh
|
|
||||||
|
|
||||||
# The following lines were added by compinstall
|
|
||||||
zstyle ':completion:*' completer _expand _complete _ignored
|
|
||||||
zstyle ':completion:*' list-colors ''
|
|
||||||
zstyle ':completion:*' menu select=0
|
|
||||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
|
||||||
zstyle :compinstall filename '/home/osh/.zshrc'
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
|
||||||
compinit
|
|
||||||
# End of lines added by compinstall
|
|
||||||
|
|
||||||
# Lines configured by zsh-newuser-install
|
|
||||||
HISTFILE=~/.histfile
|
|
||||||
HISTSIZE=1000
|
|
||||||
SAVEHIST=1000
|
|
||||||
setopt appendhistory nomatch notify extendedglob
|
|
||||||
bindkey -v
|
|
||||||
# End of lines configured by zsh-newuser-install
|
|
||||||
|
|
||||||
# Change cursor shape for different vi modes.
|
|
||||||
function zle-keymap-select {
|
|
||||||
if [[ ${KEYMAP} == vicmd ]] ||
|
|
||||||
[[ $1 = 'block' ]]; then
|
|
||||||
echo -ne '\e[1 q'
|
|
||||||
|
|
||||||
elif [[ ${KEYMAP} == main ]] ||
|
|
||||||
[[ ${KEYMAP} == viins ]] ||
|
|
||||||
[[ ${KEYMAP} = '' ]] ||
|
|
||||||
[[ $1 = 'beam' ]]; then
|
|
||||||
echo -ne '\e[5 q'
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
zle -N zle-keymap-select
|
|
||||||
|
|
||||||
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
|
|
||||||
|
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
|
||||||
source /usr/share/fzf/completion.zsh
|
|
||||||
|
|
||||||
setopt interactivecomments
|
|
||||||
setopt HIST_IGNORE_SPACE
|
|
||||||
|
|
||||||
eval $(thefuck --alias)
|
|
||||||
|
|
||||||
export PS1="
|
|
||||||
%{$(tput bold)%}%{$(tput setaf 1)%}[%{$(tput setaf 3)%}%n%{$(tput setaf 2)%}@%{$(tput setaf 4)%}%M %{$(tput setaf 5)%}%~%{$(tput setaf 1)%}]%{$(tput setaf 7)%}
|
|
||||||
$ %{$(tput sgr0)%}"
|
|
Loading…
Add table
Reference in a new issue