diff options
| author | Thomas Schmucker <ts@its1.de> | 2025-12-22 17:28:43 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2025-12-22 17:28:43 +0100 |
| commit | 6f6457b7397247a34e25d4d9bfca434d8306283e (patch) | |
| tree | 2b9d9ab2580d7fe5d6f2be31eb34c1899b7ffcd8 /nvim | |
| parent | d662ef8d258234b6602cae1b1d9060f71d29e9c1 (diff) | |
| download | dotfiles-6f6457b7397247a34e25d4d9bfca434d8306283e.tar.gz dotfiles-6f6457b7397247a34e25d4d9bfca434d8306283e.tar.bz2 dotfiles-6f6457b7397247a34e25d4d9bfca434d8306283e.zip | |
Backup: Alte Neovim-Konfiguration
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/autocmd.vim | 3 | ||||
| -rw-r--r-- | nvim/colorscheme.vim | 5 | ||||
| -rw-r--r-- | nvim/completion.lua | 21 | ||||
| -rw-r--r-- | nvim/ftplugin/c.vim | 9 | ||||
| -rw-r--r-- | nvim/ftplugin/html.vim | 15 | ||||
| -rw-r--r-- | nvim/ftplugin/markdown.vim | 3 | ||||
| -rw-r--r-- | nvim/ftplugin/typescript.vim | 11 | ||||
| -rw-r--r-- | nvim/ftplugin/vim.vim | 6 | ||||
| -rw-r--r-- | nvim/init.vim | 8 | ||||
| -rw-r--r-- | nvim/keymaps.vim | 84 | ||||
| -rw-r--r-- | nvim/lsp.lua | 60 | ||||
| -rw-r--r-- | nvim/plugins.vim | 153 | ||||
| -rw-r--r-- | nvim/settings.vim | 82 | ||||
| -rw-r--r-- | nvim/statusline.vim | 36 |
14 files changed, 0 insertions, 496 deletions
diff --git a/nvim/autocmd.vim b/nvim/autocmd.vim deleted file mode 100644 index fb718c8..0000000 --- a/nvim/autocmd.vim +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | "autocmd FileType html,css EmmetInstall | ||
| 2 | "autocmd VimEnter * NERDTree | wincmd p | ||
| 3 | "autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | ||
diff --git a/nvim/colorscheme.vim b/nvim/colorscheme.vim deleted file mode 100644 index 4484210..0000000 --- a/nvim/colorscheme.vim +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | " Farbschema | ||
| 2 | set termguicolors | ||
| 3 | set background=dark | ||
| 4 | colorscheme codedark | ||
| 5 | |||
diff --git a/nvim/completion.lua b/nvim/completion.lua deleted file mode 100644 index 747607e..0000000 --- a/nvim/completion.lua +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | vim.api.nvim_create_autocmd("LspAttach", { | ||
| 2 | callback = function(ev) | ||
| 3 | local client = vim.lsp.get_client_by_id(ev.data.client_id) | ||
| 4 | -- if client and client:supports_method("textDocument/completion") then | ||
| 5 | -- vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true }) | ||
| 6 | -- end | ||
| 7 | |||
| 8 | if client and not client:supports_method('textDocument/willSaveWaitUntil') and | ||
| 9 | client:supports_method('textDocument/formatting') then | ||
| 10 | vim.api.nvim_create_autocmd('BufWritePre', { | ||
| 11 | group = vim.api.nvim_create_augroup('my.lsp', { clear = false }), | ||
| 12 | buffer = ev.buf, | ||
| 13 | callback = function() | ||
| 14 | vim.lsp.buf.format({ bufnr = ev.buf, id = client.id, timeout_ms = 1000 }) | ||
| 15 | end, | ||
| 16 | }) | ||
| 17 | end | ||
| 18 | end, | ||
| 19 | }) | ||
| 20 | |||
| 21 | vim.o.winborder = 'rounded' | ||
diff --git a/nvim/ftplugin/c.vim b/nvim/ftplugin/c.vim deleted file mode 100644 index 3fc55eb..0000000 --- a/nvim/ftplugin/c.vim +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | setlocal cinoptions=:0,p0,t0 | ||
| 2 | setlocal cinwords=if,else,while,do,for,switch,case | ||
| 3 | setlocal formatoptions=tcqr | ||
| 4 | setlocal cindent | ||
| 5 | setlocal indentexpr=nvim_treesitter#indent() | ||
| 6 | |||
| 7 | setlocal foldenable | ||
| 8 | setlocal foldmethod=expr | ||
| 9 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
diff --git a/nvim/ftplugin/html.vim b/nvim/ftplugin/html.vim deleted file mode 100644 index fe513b6..0000000 --- a/nvim/ftplugin/html.vim +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
| 7 | |||
| 8 | setlocal foldenable | ||
| 9 | setlocal foldmethod=expr | ||
| 10 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
| 11 | |||
| 12 | let g:html_indent_script1='inc' | ||
| 13 | let g:html_indent_style1='inc' | ||
| 14 | let g:html_indent_autotags='html' | ||
| 15 | let g:html_indent_inctags='head,body' | ||
diff --git a/nvim/ftplugin/markdown.vim b/nvim/ftplugin/markdown.vim deleted file mode 100644 index e5f14dc..0000000 --- a/nvim/ftplugin/markdown.vim +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | setlocal wrap | ||
| 2 | setlocal linebreak | ||
| 3 | setlocal spell | ||
diff --git a/nvim/ftplugin/typescript.vim b/nvim/ftplugin/typescript.vim deleted file mode 100644 index 5f56854..0000000 --- a/nvim/ftplugin/typescript.vim +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
| 7 | |||
| 8 | setlocal foldenable | ||
| 9 | setlocal foldmethod=expr | ||
| 10 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
| 11 | |||
diff --git a/nvim/ftplugin/vim.vim b/nvim/ftplugin/vim.vim deleted file mode 100644 index 1054984..0000000 --- a/nvim/ftplugin/vim.vim +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
diff --git a/nvim/init.vim b/nvim/init.vim deleted file mode 100644 index 96ecac9..0000000 --- a/nvim/init.vim +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | source $HOME/.config/nvim/settings.vim | ||
| 2 | source $HOME/.config/nvim/statusline.vim | ||
| 3 | source $HOME/.config/nvim/autocmd.vim | ||
| 4 | source $HOME/.config/nvim/keymaps.vim | ||
| 5 | source $HOME/.config/nvim/plugins.vim | ||
| 6 | source $HOME/.config/nvim/colorscheme.vim | ||
| 7 | source $HOME/.config/nvim/lsp.lua | ||
| 8 | source $HOME/.config/nvim/completion.lua | ||
diff --git a/nvim/keymaps.vim b/nvim/keymaps.vim deleted file mode 100644 index f03f451..0000000 --- a/nvim/keymaps.vim +++ /dev/null | |||
| @@ -1,84 +0,0 @@ | |||
| 1 | let mapleader=',' | ||
| 2 | |||
| 3 | " mit <CTRL>+<Page*> durch die Tabs schalten | ||
| 4 | nnoremap <silent> <C-PageUp> :tabprevious<CR> | ||
| 5 | nnoremap <silent> <C-PageDown> :tabnext<CR> | ||
| 6 | |||
| 7 | " besseres Verhalten von <PageUp und <PageDown> | ||
| 8 | map <silent> <PageUp> 1000<C-U> | ||
| 9 | map <silent> <PageDown> 1000<C-D> | ||
| 10 | imap <silent> <PageUp> <C-O>1000<C-U> | ||
| 11 | imap <silent> <PageDown> <C-O>1000<C-D> | ||
| 12 | |||
| 13 | " Verschiebe Zeilen mit ALT+j oder ALT+k | ||
| 14 | nnoremap <A-j> :m .+1<CR>== | ||
| 15 | nnoremap <A-k> :m .-2<CR>== | ||
| 16 | inoremap <A-j> <Esc>:m .+1<CR>==gi | ||
| 17 | inoremap <A-k> <Esc>:m .-2<CR>==gi | ||
| 18 | vnoremap <A-j> :m '>+1<CR>gv=gv | ||
| 19 | vnoremap <A-k> :m '<-2<CR>gv=gv | ||
| 20 | |||
| 21 | " Absatzweises springen auf einer deutsche Tastatur | ||
| 22 | nnoremap ö } | ||
| 23 | nnoremap ä { | ||
| 24 | xnoremap ö } | ||
| 25 | xnoremap ä { | ||
| 26 | onoremap ö } | ||
| 27 | onoremap ä { | ||
| 28 | |||
| 29 | " besseres Verhalten in umbrochenen Texten | ||
| 30 | map j gj | ||
| 31 | map k gk | ||
| 32 | "map $ g$ | ||
| 33 | "map 0 g0 | ||
| 34 | |||
| 35 | " Funktionstasten | ||
| 36 | nnoremap <silent> <F4> :NvimTreeToggle<CR> | ||
| 37 | nnoremap <silent> <F5> :make<CR> | ||
| 38 | |||
| 39 | " Telescope | ||
| 40 | nnoremap <leader>ff <cmd>Telescope find_files<cr> | ||
| 41 | nnoremap <leader>fg <cmd>Telescope live_grep<cr> | ||
| 42 | nnoremap <leader>fb <cmd>Telescope buffers<cr> | ||
| 43 | nnoremap <leader>fh <cmd>Telescope help_tags<cr> | ||
| 44 | |||
| 45 | " LSP Keybindings | ||
| 46 | lua << EOF | ||
| 47 | vim.keymap.set("i", "<c-space>", function() vim.lsp.completion.get() end) | ||
| 48 | |||
| 49 | -- map <cr> to <c-y> when the popup menu is visible | ||
| 50 | vim.keymap.set("i", "<cr>", "pumvisible() ? '<c-y>' : '<cr>'", { expr = true }) | ||
| 51 | |||
| 52 | --[[ | ||
| 53 | vim.keymap.set('n', '<space>e', vim.diagnostic.open_float) | ||
| 54 | vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) | ||
| 55 | vim.keymap.set('n', ']d', vim.diagnostic.goto_next) | ||
| 56 | vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist) | ||
| 57 | |||
| 58 | vim.api.nvim_create_autocmd('LspAttach', { | ||
| 59 | group = vim.api.nvim_create_augroup('UserLspConfig', {}), | ||
| 60 | callback = function(ev) | ||
| 61 | vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc' | ||
| 62 | |||
| 63 | local opts = { buffer = ev.buf } | ||
| 64 | vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts) | ||
| 65 | vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) | ||
| 66 | vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) | ||
| 67 | vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts) | ||
| 68 | vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, opts) | ||
| 69 | vim.keymap.set('n', '<space>wa', vim.lsp.buf.add_workspace_folder, opts) | ||
| 70 | vim.keymap.set('n', '<space>wr', vim.lsp.buf.remove_workspace_folder, opts) | ||
| 71 | vim.keymap.set('n', '<space>wl', function() | ||
| 72 | print(vim.inspect(vim.lsp.buf.list_workspace_folders())) | ||
| 73 | end, opts) | ||
| 74 | vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, opts) | ||
| 75 | vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, opts) | ||
| 76 | vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, opts) | ||
| 77 | vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) | ||
| 78 | vim.keymap.set('n', '<space>f', function() | ||
| 79 | vim.lsp.buf.format { async = true } | ||
| 80 | end, opts) | ||
| 81 | end, | ||
| 82 | }) | ||
| 83 | ]] | ||
| 84 | EOF | ||
diff --git a/nvim/lsp.lua b/nvim/lsp.lua deleted file mode 100644 index fbb5066..0000000 --- a/nvim/lsp.lua +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | vim.lsp.config.clangd = { | ||
| 2 | cmd = { '/usr/local/bin/clangd19', '--background-index', '--function-arg-placeholders' }, | ||
| 3 | root_markers = { 'compile_commands.json', 'compile_flags.txt' }, | ||
| 4 | filetypes = { 'c', 'cpp' }, | ||
| 5 | } | ||
| 6 | |||
| 7 | vim.lsp.config.lua_ls = { | ||
| 8 | settings = { | ||
| 9 | Lua = { | ||
| 10 | runtime = { | ||
| 11 | version = 'LuaJIT', | ||
| 12 | }, | ||
| 13 | diagnostics = { | ||
| 14 | globals = { 'vim' }, | ||
| 15 | }, | ||
| 16 | workspace = { | ||
| 17 | library = vim.api.nvim_get_runtime_file("", true), | ||
| 18 | }, | ||
| 19 | telemetry = { | ||
| 20 | enable = false, | ||
| 21 | }, | ||
| 22 | }, | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | local project_library_path = "/home/t/.local/lib/node_modules" | ||
| 27 | local ng_cmd = { "ngserver", "--stdio", "--tsProbeLocations", project_library_path, "--ngProbeLocations", | ||
| 28 | project_library_path } | ||
| 29 | |||
| 30 | vim.lsp.config.angularls = { | ||
| 31 | cmd = ng_cmd, | ||
| 32 | on_new_config = function(new_config, new_root_dir) | ||
| 33 | new_config.cmd = ng_cmd | ||
| 34 | end, | ||
| 35 | } | ||
| 36 | |||
| 37 | vim.lsp.config.markdown_oxide = { | ||
| 38 | on_attach = on_attach, | ||
| 39 | cmd = { | ||
| 40 | 'markdown-oxide' | ||
| 41 | } | ||
| 42 | } | ||
| 43 | |||
| 44 | vim.lsp.enable({ | ||
| 45 | 'clangd', | ||
| 46 | 'lua_ls', | ||
| 47 | 'angularls', | ||
| 48 | 'cssls', | ||
| 49 | 'html', | ||
| 50 | 'ts_ls', | ||
| 51 | 'vimls', | ||
| 52 | 'jsonls', | ||
| 53 | 'gopls', | ||
| 54 | 'markdown_oxid' | ||
| 55 | }) | ||
| 56 | |||
| 57 | vim.diagnostic.config({ | ||
| 58 | virtual_text = true, | ||
| 59 | -- virtual_lines = true | ||
| 60 | }) | ||
diff --git a/nvim/plugins.vim b/nvim/plugins.vim deleted file mode 100644 index 4277d35..0000000 --- a/nvim/plugins.vim +++ /dev/null | |||
| @@ -1,153 +0,0 @@ | |||
| 1 | " automatische Installation von vim-plug | ||
| 2 | let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | ||
| 3 | if empty(glob(data_dir . '/autoload/plug.vim')) | ||
| 4 | silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | ||
| 5 | endif | ||
| 6 | |||
| 7 | " vim-plug | ||
| 8 | call plug#begin() | ||
| 9 | Plug 'neovim/nvim-lspconfig' | ||
| 10 | |||
| 11 | Plug 'nvim-tree/nvim-web-devicons' | ||
| 12 | Plug 'nvim-tree/nvim-tree.lua' | ||
| 13 | |||
| 14 | Plug 'romainl/vim-cool' | ||
| 15 | |||
| 16 | Plug 'tpope/vim-repeat' | ||
| 17 | Plug 'tpope/vim-surround' | ||
| 18 | |||
| 19 | Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} | ||
| 20 | |||
| 21 | Plug 'windwp/nvim-autopairs' | ||
| 22 | Plug 'windwp/nvim-ts-autotag' | ||
| 23 | |||
| 24 | Plug 'lewis6991/gitsigns.nvim' | ||
| 25 | |||
| 26 | Plug 'RRethy/vim-illuminate' | ||
| 27 | |||
| 28 | " Telescope | ||
| 29 | Plug 'nvim-lua/plenary.nvim' | ||
| 30 | Plug 'nvim-telescope/telescope.nvim' | ||
| 31 | |||
| 32 | " Colorscheme | ||
| 33 | Plug 'tomasiser/vim-code-dark' | ||
| 34 | call plug#end() | ||
| 35 | |||
| 36 | lua << EOF | ||
| 37 | |||
| 38 | -- nvim-tree | ||
| 39 | vim.g.loaded_netrw = 1 | ||
| 40 | vim.g.loaded_netrwPlugin = 1 | ||
| 41 | |||
| 42 | require("nvim-tree").setup({ | ||
| 43 | sort = { | ||
| 44 | sorter = "case_sensitive", | ||
| 45 | }, | ||
| 46 | view = { | ||
| 47 | adaptive_size = true, | ||
| 48 | }, | ||
| 49 | renderer = { | ||
| 50 | group_empty = true, | ||
| 51 | indent_markers = { | ||
| 52 | enable = true, | ||
| 53 | }, | ||
| 54 | }, | ||
| 55 | filters = { | ||
| 56 | dotfiles = true, | ||
| 57 | }, | ||
| 58 | }) | ||
| 59 | |||
| 60 | -- require('nvim-treesitter.configs').setup { | ||
| 61 | -- ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "typescript", "python", "html", "go", "gomod", "gosum" }, | ||
| 62 | -- sync_install = false, | ||
| 63 | -- auto_install = false, | ||
| 64 | -- highlight = { | ||
| 65 | -- enable = true, | ||
| 66 | -- additional_vim_regex_highlighting = true, | ||
| 67 | -- }, | ||
| 68 | -- indent = { | ||
| 69 | -- enable = true, | ||
| 70 | -- } | ||
| 71 | -- } | ||
| 72 | |||
| 73 | require'nvim-treesitter'.install { "c", "cpp", "lua", "vim", "vimdoc", "typescript", "python", "html", "go", "gomod", "gosum" } | ||
| 74 | |||
| 75 | require('nvim-autopairs').setup() | ||
| 76 | |||
| 77 | require('nvim-ts-autotag').setup() | ||
| 78 | |||
| 79 | require('gitsigns').setup() | ||
| 80 | |||
| 81 | require('illuminate').configure({ | ||
| 82 | -- providers: provider used to get references in the buffer, ordered by priority | ||
| 83 | providers = { | ||
| 84 | 'lsp', | ||
| 85 | 'treesitter', | ||
| 86 | 'regex', | ||
| 87 | }, | ||
| 88 | -- delay: delay in milliseconds | ||
| 89 | delay = 50, | ||
| 90 | -- filetype_overrides: filetype specific overrides. | ||
| 91 | -- The keys are strings to represent the filetype while the values are tables that | ||
| 92 | -- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist | ||
| 93 | filetype_overrides = {}, | ||
| 94 | -- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist | ||
| 95 | filetypes_denylist = { | ||
| 96 | 'dirbuf', | ||
| 97 | 'dirvish', | ||
| 98 | 'fugitive', | ||
| 99 | }, | ||
| 100 | -- filetypes_allowlist: filetypes to illuminate, this is overridden by filetypes_denylist | ||
| 101 | -- You must set filetypes_denylist = {} to override the defaults to allow filetypes_allowlist to take effect | ||
| 102 | filetypes_allowlist = {}, | ||
| 103 | -- modes_denylist: modes to not illuminate, this overrides modes_allowlist | ||
| 104 | -- See `:help mode()` for possible values | ||
| 105 | modes_denylist = {}, | ||
| 106 | -- modes_allowlist: modes to illuminate, this is overridden by modes_denylist | ||
| 107 | -- See `:help mode()` for possible values | ||
| 108 | modes_allowlist = {}, | ||
| 109 | -- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist | ||
| 110 | -- Only applies to the 'regex' provider | ||
| 111 | -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') | ||
| 112 | providers_regex_syntax_denylist = {}, | ||
| 113 | -- providers_regex_syntax_allowlist: syntax to illuminate, this is overridden by providers_regex_syntax_denylist | ||
| 114 | -- Only applies to the 'regex' provider | ||
| 115 | -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') | ||
| 116 | providers_regex_syntax_allowlist = {}, | ||
| 117 | -- under_cursor: whether or not to illuminate under the cursor | ||
| 118 | under_cursor = true, | ||
| 119 | -- large_file_cutoff: number of lines at which to use large_file_config | ||
| 120 | -- The `under_cursor` option is disabled when this cutoff is hit | ||
| 121 | large_file_cutoff = nil, | ||
| 122 | -- large_file_config: config to use for large files (based on large_file_cutoff). | ||
| 123 | -- Supports the same keys passed to .configure | ||
| 124 | -- If nil, vim-illuminate will be disabled for large files. | ||
| 125 | large_file_overrides = nil, | ||
| 126 | -- min_count_to_highlight: minimum number of matches required to perform highlighting | ||
| 127 | min_count_to_highlight = 2, | ||
| 128 | -- should_enable: a callback that overrides all other settings to | ||
| 129 | -- enable/disable illumination. This will be called a lot so don't do | ||
| 130 | -- anything expensive in it. | ||
| 131 | should_enable = function(bufnr) return true end, | ||
| 132 | -- case_insensitive_regex: sets regex case sensitivity | ||
| 133 | case_insensitive_regex = false, | ||
| 134 | }) | ||
| 135 | |||
| 136 | -- change the highlight style | ||
| 137 | |||
| 138 | vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "MatchParen" }) | ||
| 139 | vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "MatchParen" }) | ||
| 140 | vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "MatchParen" }) | ||
| 141 | |||
| 142 | --- auto update the highlight style on colorscheme change | ||
| 143 | vim.api.nvim_create_autocmd({ "ColorScheme" }, { | ||
| 144 | pattern = { "*" }, | ||
| 145 | callback = function(ev) | ||
| 146 | vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "MatchParen" }) | ||
| 147 | vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "MatchParen" }) | ||
| 148 | vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "MatchParen" }) | ||
| 149 | end | ||
| 150 | }) | ||
| 151 | |||
| 152 | EOF | ||
| 153 | |||
diff --git a/nvim/settings.vim b/nvim/settings.vim deleted file mode 100644 index 1586c23..0000000 --- a/nvim/settings.vim +++ /dev/null | |||
| @@ -1,82 +0,0 @@ | |||
| 1 | " Allgemeine Einstellungen | ||
| 2 | set number | ||
| 3 | set cursorline | ||
| 4 | set shortmess+=I | ||
| 5 | set nowrap | ||
| 6 | set nocompatible | ||
| 7 | set ruler | ||
| 8 | set wildmenu | ||
| 9 | set noshowcmd | ||
| 10 | set splitright | ||
| 11 | set splitbelow | ||
| 12 | set hidden | ||
| 13 | set signcolumn=yes | ||
| 14 | |||
| 15 | " Rechtsschreibprüfung | ||
| 16 | set nospell | ||
| 17 | set spelllang=de,en | ||
| 18 | |||
| 19 | " Optionen für ^n-Vervollständigung | ||
| 20 | set complete=.,w,b,u,t,i | ||
| 21 | |||
| 22 | " bessere Suche | ||
| 23 | set hlsearch | ||
| 24 | set incsearch | ||
| 25 | set ignorecase | ||
| 26 | set smartcase | ||
| 27 | |||
| 28 | " Sonderzeichen anzeigen | ||
| 29 | set list | ||
| 30 | set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ | ||
| 31 | set matchpairs+=<:> | ||
| 32 | |||
| 33 | " automatisches Einlesen geänderter Dateien | ||
| 34 | set autoread | ||
| 35 | |||
| 36 | " Suche rekursiv | ||
| 37 | set path+=** | ||
| 38 | |||
| 39 | " Tabs | ||
| 40 | set noexpandtab | ||
| 41 | set tabstop=4 | ||
| 42 | set shiftwidth=4 | ||
| 43 | set softtabstop=0 | ||
| 44 | |||
| 45 | " Einrückungen | ||
| 46 | set smartindent | ||
| 47 | set autoindent | ||
| 48 | set cindent | ||
| 49 | |||
| 50 | " Faltungen | ||
| 51 | set foldlevel=1000 | ||
| 52 | set foldcolumn=0 | ||
| 53 | |||
| 54 | " Autovervollständigung | ||
| 55 | set completeopt=longest,menuone,noselect,popup | ||
| 56 | |||
| 57 | " externe Programme | ||
| 58 | set makeprg=gmake | ||
| 59 | set autowrite | ||
| 60 | |||
| 61 | " Guifont | ||
| 62 | set guifont=JetBrains\ Mono\ Semibold:h12 | ||
| 63 | |||
| 64 | " provider | ||
| 65 | let g:python3_host_prog='/usr/local/bin/python' | ||
| 66 | let g:loaded_node_provider=0 | ||
| 67 | let g:loaded_ruby_provider=0 | ||
| 68 | let g:loaded_perl_provider=0 | ||
| 69 | |||
| 70 | " Swap files und UnDo | ||
| 71 | set noswapfile | ||
| 72 | set undofile | ||
| 73 | set undolevels=10000 | ||
| 74 | set undoreload=10000 | ||
| 75 | |||
| 76 | " Clipboard | ||
| 77 | set clipboard=unnamedplus | ||
| 78 | |||
| 79 | " weitere Einstellungen | ||
| 80 | syntax enable | ||
| 81 | filetype plugin indent on | ||
| 82 | |||
diff --git a/nvim/statusline.vim b/nvim/statusline.vim deleted file mode 100644 index 069e632..0000000 --- a/nvim/statusline.vim +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | " Statusline | ||
| 2 | function! GitBranch() | ||
| 3 | return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") | ||
| 4 | endfunction | ||
| 5 | |||
| 6 | function! StatuslineGit() | ||
| 7 | let l:branchname = GitBranch() | ||
| 8 | return strlen(l:branchname) > 0?' '.l:branchname.' ':'' | ||
| 9 | endfunction | ||
| 10 | |||
| 11 | let g:currentmode={ | ||
| 12 | \ 'n' : 'n', | ||
| 13 | \ 'v' : 'v', | ||
| 14 | \ 'V' : 'vl', | ||
| 15 | \ '' : 'vb', | ||
| 16 | \ 'i' : 'i', | ||
| 17 | \ 'R' : 'r', | ||
| 18 | \ 'Rv' : 'rv', | ||
| 19 | \ 'c' : 'c', | ||
| 20 | \ 't' : 'f', | ||
| 21 | \} | ||
| 22 | |||
| 23 | set laststatus=2 | ||
| 24 | set statusline= | ||
| 25 | set statusline+=%#PmenuSel# | ||
| 26 | set statusline+=%{StatuslineGit()} | ||
| 27 | set statusline+=%#Statusline# | ||
| 28 | set statusline+=\ %f | ||
| 29 | set statusline+=%m | ||
| 30 | set statusline+=%= | ||
| 31 | set statusline+=%#StatusLineNc# | ||
| 32 | set statusline+=\ %y | ||
| 33 | set statusline+=\ %{&fileencoding?&fileencoding:&encoding} | ||
| 34 | set statusline+=\ %p%% | ||
| 35 | set statusline+=\ %l:%c | ||
| 36 | |||
