aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/autocmd.vim4
-rw-r--r--nvim/init.vim5
-rw-r--r--nvim/keymaps.vim2
-rw-r--r--nvim/plugins.vim104
-rw-r--r--nvim/settings.vim5
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 @@
1autocmd FileType html,css EmmetInstall 1autocmd FileType html,css EmmetInstall
2autocmd VimEnter * NERDTree | wincmd p 2"autocmd VimEnter * NERDTree | wincmd p
3autocmd 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
3source $HOME/.config/nvim/autocmd.vim 3source $HOME/.config/nvim/autocmd.vim
4source $HOME/.config/nvim/keymaps.vim 4source $HOME/.config/nvim/keymaps.vim
5source $HOME/.config/nvim/plugins.vim 5source $HOME/.config/nvim/plugins.vim
6
7" Farbschema
8set termguicolors
9set background=dark
10colorscheme 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>"
32inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<Up>" 32inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<Up>"
33 33
34" Funktionstasten 34" Funktionstasten
35nnoremap <silent> <F4> :NERDTreeToggle<CR> 35nnoremap <silent> <F4> :NvimTreeToggle<CR>
36nnoremap <silent> <F5> :make<CR> 36nnoremap <silent> <F5> :make<CR>
37nnoremap <silent> <F7> :MundoToggle<CR> 37nnoremap <silent> <F7> :MundoToggle<CR>
38nnoremap <silent> <F8> :TagbarToggle<CR> 38nnoremap <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
8call plug#begin() 8call 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
42call plug#end() 43call plug#end()
43 44
44" EMMET 45" EMMET
45let g:user_emmet_install_global=0 46let g:user_emmet_install_global=0
46let g:user_emmet_leader_key='<C-y>' 47let g:user_emmet_leader_key='<C-y>'
47 48
48" NERDTree
49let NERDTreeMinimalUI=1
50let NERDTreeShowHidden=0
51
52" NERDTree GIT Plugin
53let g:NERDTreeGitStatusUntrackedFilesMode='all'
54let g:NERDTreeGitStatusShowClean=1
55let g:NERDTreeGitStatusConcealBrackets=1
56let g:NERDTreeDirArrowExpandable='+'
57let g:NERDTreeDirArrowCollapsible='-'
58
59let g:WebDevIconsUnicodeDecorateFolderNodes=1
60let g:DevIconsEnableFoldersOpenClose=1
61let g:WebDevIconsNerdTreeBeforeGlyphPadding=''
62
63" Tagbar 49" Tagbar
64let g:tagbar_ctags_bin='/usr/local/bin/uctags' 50let g:tagbar_ctags_bin='/usr/local/bin/uctags'
65 51
@@ -69,59 +55,25 @@ let g:mundo_width=40
69let g:mundo_preview_height=30 55let g:mundo_preview_height=30
70 56
71lua << EOF 57lua << EOF
58-- nvim-tree
59vim.g.loaded_netrw = 1
60vim.g.loaded_netrwPlugin = 1
72 61
73require("catppuccin").setup({ 62require("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
123vim.cmd.colorscheme "catppuccin"
124
125require('nvim-treesitter.configs').setup { 77require('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
309vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "Visual" }) 261vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "CursorLine" })
310vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "Visual" }) 262vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "CursorLine" })
311vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "Visual" }) 263vim.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
314vim.api.nvim_create_autocmd({ "ColorScheme" }, { 266vim.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})
322EOF 274EOF
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
77filetype plugin indent on 77filetype plugin indent on
78 78
79" Farbschema 79" Farbschema
80set termguicolors 80" set termguicolors
81" colorscheme default 81" set background=dark
82" colorscheme iceberg
82 83