call plug#begin() Plug 'glepnir/galaxyline.nvim' , {'branch': 'main'} Plug 'kyazdani42/nvim-web-devicons' " for file icons Plug 'kyazdani42/nvim-tree.lua' Plug 'junegunn/goyo.vim' Plug 'JoosepAlviste/nvim-ts-context-commentstring' Plug 'tpope/vim-commentary' Plug 'mhinz/vim-signify' Plug 'neovim/nvim-lspconfig' Plug 'mhartington/formatter.nvim' Plug 'hrsh7th/nvim-compe' Plug 'onsails/lspkind-nvim' Plug 'MasterGordon/monokai.nvim' Plug 'ron89/thesaurus_query.vim' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'blackcauldron7/surround.nvim' Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'SidOfc/mkdx' Plug 'nacro90/numb.nvim' Plug 'glepnir/dashboard-nvim' Plug 'norcalli/nvim-colorizer.lua' Plug 'davidgranstrom/nvim-markdown-preview' Plug 'RishabhRD/popfix' Plug 'RishabhRD/nvim-lsputils' Plug 'akinsho/nvim-bufferline.lua' Plug 'folke/todo-comments.nvim' Plug 'windwp/nvim-ts-autotag' Plug 'jiangmiao/auto-pairs' Plug 'simrat39/symbols-outline.nvim' Plug 'ray-x/lsp_signature.nvim' " post install (yarn install | npm install) then load plugin only for editing supported files call plug#end() nmap f Telescope find_files lua require('numb').setup() " Theme colorscheme monokai " StatusLine luafile $HOME/.config/nvim/plugins/galaxyline.lua " Lsp Signature " lua require'lsp_signature'.on_attach() " Dashboard let g:dashboard_default_executive ='telescope' nnoremap r :DashboardFindHistory " Startify let g:startify_custom_header = startify#pad(split(system('cat $HOME/.config/nvim/splash'), '\n')) lua << EOF function _G.webDevIcons(path) local filename = vim.fn.fnamemodify(path, ':t') local extension = vim.fn.fnamemodify(path, ':e') return require'nvim-web-devicons'.get_icon(filename, extension, { default = true }) end EOF function! StartifyEntryFormat() abort return 'v:lua.webDevIcons(absolute_path) . " " . entry_path' endfunction " commentstring lua << EOF require'nvim-treesitter.configs'.setup { context_commentstring = { enable = true } } EOF " Outline noremap o :SymbolsOutline " Bufferline lua < :lua require"bufferline".go_to_buffer(1) noremap :lua require"bufferline".go_to_buffer(2) noremap :lua require"bufferline".go_to_buffer(3) noremap :lua require"bufferline".go_to_buffer(4) noremap :lua require"bufferline".go_to_buffer(5) noremap :lua require"bufferline".go_to_buffer(6) noremap :lua require"bufferline".go_to_buffer(7) noremap :lua require"bufferline".go_to_buffer(8) noremap :lua require"bufferline".go_to_buffer(9) noremap :lua require"bufferline".go_to_buffer(10) noremap noremap noremap noremap " colorizer lua <p :Prettier " Surround lua require"surround".setup{} " NVim Tree Config let g:nvim_tree_auto_close = 1 let g:nvim_tree_ignore = [ '.git', 'node_modules', '.cache' ] let g:nvim_tree_indent_markers = 1 map :NvimTreeFindFile let g:nvim_tree_icons = { \ 'default': '', \ 'symlink': '', \ 'git': { \ 'unstaged': "✗", \ 'staged': "✓", \ 'unmerged': "", \ 'renamed': "➜", \ 'untracked': "★" \ }, \ 'folder': { \ 'default': "", \ 'open': "", \ 'symlink': "", \ } \ } lua <"] = tree_cb("edit"), ["<2-LeftMouse>"] = tree_cb("edit"), ["<2-RightMouse>"] = tree_cb("cd"), [""] = tree_cb("cd"), ["s"] = tree_cb("vsplit"), ["i"] = tree_cb("split"), ["t"] = tree_cb("tabnew"), ["<"] = tree_cb("prev_sibling"), [">"] = tree_cb("next_sibling"), [""] = tree_cb("close_node"), [""] = tree_cb("close_node"), [""] = tree_cb("preview"), ["I"] = tree_cb("toggle_ignored"), ["I"] = tree_cb("toggle_dotfiles"), ["r"] = tree_cb("refresh"), ["c"] = tree_cb("create"), ["d"] = tree_cb("remove"), ["m"] = tree_cb("rename"), [""] = tree_cb("full_rename"), ["x"] = tree_cb("cut"), ["c"] = tree_cb("copy"), ["p"] = tree_cb("paste"), ["[c"] = tree_cb("prev_git_item"), ["]c"] = tree_cb("next_git_item"), ["-"] = tree_cb("dir_up"), ["q"] = tree_cb("close"), } EOF " TreeSitter lua <s :ThesaurusQueryReplaceCurrentWord let g:tq_language=['en', 'de'] let g:tq_enabled_backends=["openthesaurus_de", "woxikon_de", "openoffice_en", "datamuse_com"] " Tagalong let g:tagalong_verbose = 1 let g:tagalong_filetypes = ['html', 'xml', 'jsx', 'tsx', 'eruby', 'ejs', 'eco', 'php', 'htmldjango', 'javascriptreact', 'typescriptreact', 'typescript.tsx', 'javascript.jsx', 'mako'] let g:tagalong_additional_filetypes = ['typescript.tsx', 'javascript.jsx', 'mako'] " coc.nvim " source plugins/coc.vim " nvim-lsp luafile $HOME/.config/nvim/plugins/lsp.lua " Formatter luafile $HOME/.config/nvim/plugins/formatter.lua " nvim.compe luafile $HOME/.config/nvim/plugins/compe.lua inoremap compe#complete() inoremap compe#confirm('') inoremap compe#close('') inoremap compe#scroll({ 'delta': +4 }) inoremap compe#scroll({ 'delta': -4 }) " lspkind lua <