diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/autocmd.vim | 4 | ||||
| -rw-r--r-- | nvim/init.vim | 5 | ||||
| -rw-r--r-- | nvim/keymaps.vim | 2 | ||||
| -rw-r--r-- | nvim/plugins.vim | 104 | ||||
| -rw-r--r-- | nvim/settings.vim | 5 |
5 files changed, 39 insertions, 81 deletions
diff --git a/nvim/autocmd.vim b/nvim/autocmd.vim index 5dda3b5..f5db72c 100644 --- a/nvim/autocmd.vim +++ b/nvim/autocmd.vim | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | autocmd FileType html,css EmmetInstall | 1 | autocmd FileType html,css EmmetInstall |
| 2 | autocmd VimEnter * NERDTree | wincmd p | 2 | "autocmd VimEnter * NERDTree | wincmd p |
| 3 | autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | 3 | "autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif |
diff --git a/nvim/init.vim b/nvim/init.vim index cb2425d..da1170a 100644 --- a/nvim/init.vim +++ b/nvim/init.vim | |||
| @@ -3,3 +3,8 @@ source $HOME/.config/nvim/statusline.vim | |||
| 3 | source $HOME/.config/nvim/autocmd.vim | 3 | source $HOME/.config/nvim/autocmd.vim |
| 4 | source $HOME/.config/nvim/keymaps.vim | 4 | source $HOME/.config/nvim/keymaps.vim |
| 5 | source $HOME/.config/nvim/plugins.vim | 5 | source $HOME/.config/nvim/plugins.vim |
| 6 | |||
| 7 | " Farbschema | ||
| 8 | set termguicolors | ||
| 9 | set background=dark | ||
| 10 | colorscheme iceberg | ||
diff --git a/nvim/keymaps.vim b/nvim/keymaps.vim index f905d51..2c1d65b 100644 --- a/nvim/keymaps.vim +++ b/nvim/keymaps.vim | |||
| @@ -32,7 +32,7 @@ inoremap <expr> <C-j> pumvisible() ? "\<C-n>" : "\<Down>" | |||
| 32 | inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<Up>" | 32 | inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<Up>" |
| 33 | 33 | ||
| 34 | " Funktionstasten | 34 | " Funktionstasten |
| 35 | nnoremap <silent> <F4> :NERDTreeToggle<CR> | 35 | nnoremap <silent> <F4> :NvimTreeToggle<CR> |
| 36 | nnoremap <silent> <F5> :make<CR> | 36 | nnoremap <silent> <F5> :make<CR> |
| 37 | nnoremap <silent> <F7> :MundoToggle<CR> | 37 | nnoremap <silent> <F7> :MundoToggle<CR> |
| 38 | nnoremap <silent> <F8> :TagbarToggle<CR> | 38 | nnoremap <silent> <F8> :TagbarToggle<CR> |
diff --git a/nvim/plugins.vim b/nvim/plugins.vim index 0563fda..b1dfe3a 100644 --- a/nvim/plugins.vim +++ b/nvim/plugins.vim | |||
| @@ -7,8 +7,10 @@ endif | |||
| 7 | " vim-plug | 7 | " vim-plug |
| 8 | call plug#begin() | 8 | call plug#begin() |
| 9 | Plug 'mattn/emmet-vim' | 9 | Plug 'mattn/emmet-vim' |
| 10 | Plug 'preservim/nerdtree' | 10 | |
| 11 | Plug 'Xuyuanp/nerdtree-git-plugin' | 11 | Plug 'nvim-tree/nvim-web-devicons' |
| 12 | Plug 'nvim-tree/nvim-tree.lua' | ||
| 13 | |||
| 12 | Plug 'preservim/tagbar' | 14 | Plug 'preservim/tagbar' |
| 13 | Plug 'romainl/vim-cool' | 15 | Plug 'romainl/vim-cool' |
| 14 | Plug 'simnalamburt/vim-mundo' | 16 | Plug 'simnalamburt/vim-mundo' |
| @@ -37,29 +39,13 @@ call plug#begin() | |||
| 37 | Plug 'nvim-lua/plenary.nvim' | 39 | Plug 'nvim-lua/plenary.nvim' |
| 38 | Plug 'nvim-telescope/telescope.nvim' | 40 | Plug 'nvim-telescope/telescope.nvim' |
| 39 | 41 | ||
| 40 | Plug 'catppuccin/nvim', { 'as': 'catppuccin' } | 42 | Plug 'cocopon/iceberg.vim' |
| 41 | |||
| 42 | call plug#end() | 43 | call plug#end() |
| 43 | 44 | ||
| 44 | " EMMET | 45 | " EMMET |
| 45 | let g:user_emmet_install_global=0 | 46 | let g:user_emmet_install_global=0 |
| 46 | let g:user_emmet_leader_key='<C-y>' | 47 | let g:user_emmet_leader_key='<C-y>' |
| 47 | 48 | ||
| 48 | " NERDTree | ||
| 49 | let NERDTreeMinimalUI=1 | ||
| 50 | let NERDTreeShowHidden=0 | ||
| 51 | |||
| 52 | " NERDTree GIT Plugin | ||
| 53 | let g:NERDTreeGitStatusUntrackedFilesMode='all' | ||
| 54 | let g:NERDTreeGitStatusShowClean=1 | ||
| 55 | let g:NERDTreeGitStatusConcealBrackets=1 | ||
| 56 | let g:NERDTreeDirArrowExpandable='+' | ||
| 57 | let g:NERDTreeDirArrowCollapsible='-' | ||
| 58 | |||
| 59 | let g:WebDevIconsUnicodeDecorateFolderNodes=1 | ||
| 60 | let g:DevIconsEnableFoldersOpenClose=1 | ||
| 61 | let g:WebDevIconsNerdTreeBeforeGlyphPadding='' | ||
| 62 | |||
| 63 | " Tagbar | 49 | " Tagbar |
| 64 | let g:tagbar_ctags_bin='/usr/local/bin/uctags' | 50 | let g:tagbar_ctags_bin='/usr/local/bin/uctags' |
| 65 | 51 | ||
| @@ -69,59 +55,25 @@ let g:mundo_width=40 | |||
| 69 | let g:mundo_preview_height=30 | 55 | let g:mundo_preview_height=30 |
| 70 | 56 | ||
| 71 | lua << EOF | 57 | lua << EOF |
| 58 | -- nvim-tree | ||
| 59 | vim.g.loaded_netrw = 1 | ||
| 60 | vim.g.loaded_netrwPlugin = 1 | ||
| 72 | 61 | ||
| 73 | require("catppuccin").setup({ | 62 | require("nvim-tree").setup({ |
| 74 | flavour = "auto", -- latte, frappe, macchiato, mocha | 63 | sort = { |
| 75 | background = { -- :h background | 64 | sorter = "case_sensitive", |
| 76 | light = "latte", | 65 | }, |
| 77 | dark = "mocha", | 66 | view = { |
| 78 | }, | 67 | width = 30, |
| 79 | transparent_background = false, -- disables setting the background color. | 68 | }, |
| 80 | show_end_of_buffer = false, -- shows the '~' characters after the end of buffers | 69 | renderer = { |
| 81 | term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) | 70 | group_empty = true, |
| 82 | dim_inactive = { | 71 | }, |
| 83 | enabled = false, -- dims the background color of inactive window | 72 | filters = { |
| 84 | shade = "dark", | 73 | dotfiles = true, |
| 85 | percentage = 0.15, -- percentage of the shade to apply to the inactive window | 74 | }, |
| 86 | }, | ||
| 87 | no_italic = false, -- Force no italic | ||
| 88 | no_bold = false, -- Force no bold | ||
| 89 | no_underline = false, -- Force no underline | ||
| 90 | styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): | ||
| 91 | comments = { "italic" }, -- Change the style of comments | ||
| 92 | conditionals = { "italic" }, | ||
| 93 | loops = {}, | ||
| 94 | functions = {}, | ||
| 95 | keywords = {}, | ||
| 96 | strings = {}, | ||
| 97 | variables = {}, | ||
| 98 | numbers = {}, | ||
| 99 | booleans = {}, | ||
| 100 | properties = {}, | ||
| 101 | types = {}, | ||
| 102 | operators = {}, | ||
| 103 | -- miscs = {}, -- Uncomment to turn off hard-coded styles | ||
| 104 | }, | ||
| 105 | color_overrides = {}, | ||
| 106 | custom_highlights = {}, | ||
| 107 | default_integrations = true, | ||
| 108 | integrations = { | ||
| 109 | cmp = true, | ||
| 110 | gitsigns = true, | ||
| 111 | nvimtree = true, | ||
| 112 | treesitter = true, | ||
| 113 | notify = false, | ||
| 114 | mini = { | ||
| 115 | enabled = true, | ||
| 116 | indentscope_color = "", | ||
| 117 | }, | ||
| 118 | -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations) | ||
| 119 | }, | ||
| 120 | }) | 75 | }) |
| 121 | 76 | ||
| 122 | -- setup must be called before loading | ||
| 123 | vim.cmd.colorscheme "catppuccin" | ||
| 124 | |||
| 125 | require('nvim-treesitter.configs').setup { | 77 | require('nvim-treesitter.configs').setup { |
| 126 | ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "typescript", "python", "html" }, | 78 | ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "typescript", "python", "html" }, |
| 127 | sync_install = false, | 79 | sync_install = false, |
| @@ -258,7 +210,7 @@ require('illuminate').configure({ | |||
| 258 | 'regex', | 210 | 'regex', |
| 259 | }, | 211 | }, |
| 260 | -- delay: delay in milliseconds | 212 | -- delay: delay in milliseconds |
| 261 | delay = 100, | 213 | delay = 50, |
| 262 | -- filetype_overrides: filetype specific overrides. | 214 | -- filetype_overrides: filetype specific overrides. |
| 263 | -- The keys are strings to represent the filetype while the values are tables that | 215 | -- The keys are strings to represent the filetype while the values are tables that |
| 264 | -- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist | 216 | -- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist |
| @@ -306,17 +258,17 @@ require('illuminate').configure({ | |||
| 306 | }) | 258 | }) |
| 307 | 259 | ||
| 308 | -- change the highlight style | 260 | -- change the highlight style |
| 309 | vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "Visual" }) | 261 | vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "CursorLine" }) |
| 310 | vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "Visual" }) | 262 | vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "CursorLine" }) |
| 311 | vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "Visual" }) | 263 | vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "CursorLine" }) |
| 312 | 264 | ||
| 313 | --- auto update the highlight style on colorscheme change | 265 | --- auto update the highlight style on colorscheme change |
| 314 | vim.api.nvim_create_autocmd({ "ColorScheme" }, { | 266 | vim.api.nvim_create_autocmd({ "ColorScheme" }, { |
| 315 | pattern = { "*" }, | 267 | pattern = { "*" }, |
| 316 | callback = function(ev) | 268 | callback = function(ev) |
| 317 | vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "Visual" }) | 269 | vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "CursorLine" }) |
| 318 | vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "Visual" }) | 270 | vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "CursorLine" }) |
| 319 | vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "Visual" }) | 271 | vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "CursorLine" }) |
| 320 | end | 272 | end |
| 321 | }) | 273 | }) |
| 322 | EOF | 274 | EOF |
diff --git a/nvim/settings.vim b/nvim/settings.vim index f65e180..6435401 100644 --- a/nvim/settings.vim +++ b/nvim/settings.vim | |||
| @@ -77,6 +77,7 @@ syntax enable | |||
| 77 | filetype plugin indent on | 77 | filetype plugin indent on |
| 78 | 78 | ||
| 79 | " Farbschema | 79 | " Farbschema |
| 80 | set termguicolors | 80 | " set termguicolors |
| 81 | " colorscheme default | 81 | " set background=dark |
| 82 | " colorscheme iceberg | ||
| 82 | 83 | ||
