------------- -- plugins -- ------------- require "paq" { "savq/paq-nvim"; -- Let Paq manage itself -- general plugins "nvim-lualine/lualine.nvim"; { 'kyazdani42/nvim-web-devicons', opt=true }; 'romgrk/barbar.nvim'; 'ggandor/lightspeed.nvim'; -- colorschemes -- 'rebelot/kanagawa.nvim'; 'folke/tokyonight.nvim'; -- code related -- 'neovim/nvim-lspconfig'; -- Configs for Nvim LSP 'hrsh7th/nvim-cmp'; -- Autocompletion plugin 'hrsh7th/cmp-nvim-lsp'; -- LSP source for nvim-cmp 'nvim-lua/plenary.nvim'; -- Dependency for telescope 'nvim-telescope/telescope.nvim'; -- Fuzzy finder {'nvim-telescope/telescope-fzf-native.nvim', run='make' }; 'nvim-treesitter/nvim-treesitter'; -- Better syntax highlighting 'nvim-tree/nvim-tree.lua'; -- File Explorer 'numToStr/Comment.nvim'; -- Quickly comment lines 'windwp/nvim-autopairs'; 'tpope/vim-surround'; 'lukas-reineke/indent-blankline.nvim'; 'ap/vim-css-color'; 'L3MON4D3/LuaSnip'; -- Snippets plugin 'saadparwaiz1/cmp_luasnip'; -- Snippets source for nvim-cmp 'dhruvasagar/vim-table-mode'; } -- looks like tablemode for vim-table-mode in markdown vim.cmd [[ function! s:isAtStartOfLine(mapping) let text_before_cursor = getline('.')[0 : col('.')-1] let mapping_pattern = '\V' . escape(a:mapping, '\') let comment_pattern = '\V' . escape(substitute(&l:commentstring, '%s.*$', '', ''), '\') return (text_before_cursor =~? '^' . ('\v(' . comment_pattern . '\v)?') . '\s*\v' . mapping_pattern . '\v$') endfunction inoreabbrev \ isAtStartOfLine('\|\|') ? \ ':TableModeEnable' : '' inoreabbrev __ \ isAtStartOfLine('__') ? \ ':silent! TableModeDisable' : '__' ]] require'plugins.lualine' require'plugins.nvim-treesitter' require'plugins.nvim-cmp' require'plugins.telescope' require'Comment'.setup() require'nvim-tree'.setup() require'indent_blankline'.setup{ show_current_context = true, } -- setup barbar require'bufferline'.setup{ icons = false, }