diff options
Diffstat (limited to 'nvim_alt/plugins.vim')
| -rw-r--r-- | nvim_alt/plugins.vim | 153 |
1 files changed, 0 insertions, 153 deletions
diff --git a/nvim_alt/plugins.vim b/nvim_alt/plugins.vim deleted file mode 100644 index 4277d35..0000000 --- a/nvim_alt/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 | |||
