vim.opt.undofile = true
vim.opt.textwidth = 80
map('', 'Q', '<nop>', opts)
+vim.g.mapleader = ' '
-- Polyglot
vim.g.polyglot_disabled = {'sensible'}
'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
'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
'tpope/vim-commentary'; -- Easily comment
'tpope/vim-rsi'; -- Readline bindings
'<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', 'K',
'<cmd>lua vim.lsp.buf.hover()<CR>', opts)
- buf_set_keymap('n', '<space>rn',
+ buf_set_keymap('n', '<leader>rn',
'<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '[d',
'<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
buf_set_keymap('n', ']d',
'<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
+ buf_set_keymap('n', '<leader>e',
+ '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
end
-- Add servers
end
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"