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': "", \ } \ } let g:nvim_tree_disable_default_keybindings = 1 lua <", "o", "<2-LeftMouse>"}, cb = tree_cb("edit") }, { key = {"<2-RightMouse>", ""}, cb = tree_cb("cd") }, { key = "s", cb = tree_cb("vsplit") }, { key = "i", cb = tree_cb("split") }, { key = "t", cb = tree_cb("tabnew") }, { key = "<", cb = tree_cb("prev_sibling") }, { key = ">", cb = tree_cb("next_sibling") }, { key = "P", cb = tree_cb("parent_node") }, { key = "", cb = tree_cb("close_node") }, { key = "", cb = tree_cb("close_node") }, { key = "", cb = tree_cb("preview") }, { key = "K", cb = tree_cb("first_sibling") }, { key = "J", cb = tree_cb("last_sibling") }, { key = "I", cb = tree_cb("toggle_ignored") }, { key = "I", cb = tree_cb("toggle_dotfiles") }, { key = "r", cb = tree_cb("refresh") }, { key = "c", cb = tree_cb("create") }, { key = "d", cb = tree_cb("remove") }, { key = "m", cb = tree_cb("rename") }, { key = "", cb = tree_cb("full_rename") }, { key = "x", cb = tree_cb("cut") }, { key = "c", cb = tree_cb("copy") }, { key = "p", cb = tree_cb("paste") }, { key = "y", cb = tree_cb("copy_name") }, { key = "Y", cb = tree_cb("copy_path") }, { key = "gy", cb = tree_cb("copy_absolute_path") }, { key = "[c", cb = tree_cb("prev_git_item") }, { key = "]c", cb = tree_cb("next_git_item") }, { key = "-", cb = tree_cb("dir_up") }, { key = "q", cb = tree_cb("close") }, { key = "?", cb = tree_cb("toggle_help") }, } 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 <