]> git.armaanb.net Git - dotfiles.git/blobdiff - .config/nvim/init.lua
nvim: disable keyword completion
[dotfiles.git] / .config / nvim / init.lua
index d85a06a51f3ff376f7e471c06b1b0d63dbeba88e..148dfde6e8b230823be21fb67c227da4838ce459 100644 (file)
@@ -19,15 +19,20 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
                'https://github.com/savq/paq-nvim.git', install_path})
 end
 
+require('impatient')
+
 require('paq') {
-       'ap/vim-css-color';               -- Highlight css colors
-       'ctrlpvim/ctrlp.vim';             -- Fuzzy file finding
+       'junegunn/fzf';                   -- Fuzzy file finding
+       'junegunn/fzf.vim';               -- Fuzzy file finding
        'editorconfig/editorconfig-vim';  -- Follow editorconfig
        'folke/lsp-colors.nvim';          -- Add LSP colors to any theme
        'godlygeek/tabular';              -- Line things up
+       'lewis6991/impatient.nvim';       -- Improve startup time
        'lifepillar/vim-mucomplete';      -- Simple autocompletion
        'meain/hima-vim';                 -- Nice color scheme
+       'nathom/filetype.nvim';           -- Faster filetype.vim replacement
        'neovim/nvim-lspconfig';          -- LSP configurations
+       'norcalli/nvim-colorizer.lua';    -- Highlight css colors
        'ntpeters/vim-better-whitespace'; -- Highlight and strip whitespace
        'savq/paq-nvim';                  -- paq manages itself
        'sheerun/vim-polyglot';           -- Language pack
@@ -51,6 +56,14 @@ map('n', '<C-l>', '<C-w><C-l>', opts)
 -- Clear search highlighting
 map('n', '<C-c>', ':noh<CR>', opts)
 
+-- FZF
+map('n', '<leader>f', ':Files<CR>', opts)
+-- TODO: Sharp corners... I can't figure this out
+
+-- Disable keyword completion
+map('i', '<C-n>', '<Down>', opts)
+map('i', '<C-p>', '<Up>', opts)
+
 -- Completion
 vim.opt.completeopt = vim.opt.completeopt + 'menuone'
 vim.opt.completeopt = vim.opt.completeopt - 'preview'
@@ -102,3 +115,6 @@ vim.opt.signcolumn = 'no'
 -- Jump to files with gf
 vim.opt.hidden = true
 vim.opt.path = vim.opt.path + '**'
+
+-- Disable intro message
+vim.opt.shortmess = "I"