minor neovim changes - I think it's ready to roll
This commit is contained in:
parent
24fb0019f8
commit
bd34387c57
3 changed files with 14 additions and 13 deletions
|
@ -1,11 +1,12 @@
|
|||
-- Load plugins
|
||||
-- Bootstrap packer if needed
|
||||
-- Bootstrap packer if needed {
|
||||
local fn = vim.fn
|
||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||
vim.cmd 'packadd packer.nvim'
|
||||
end
|
||||
-- }
|
||||
|
||||
return require('packer').startup(function()
|
||||
-- Packer
|
||||
|
@ -88,13 +89,12 @@ return require('packer').startup(function()
|
|||
}
|
||||
use { -- ALE: Support for lots of linters, etc
|
||||
'dense-analysis/ale',
|
||||
ft = {'sh', 'zsh', 'bash', 'c', 'cc', 'cpp', 'cmake', 'html', 'markdown', 'racket', 'vim', 'tex'},
|
||||
ft = {'sh', 'zsh', 'bash', 'cmake', 'html', 'markdown', 'racket', 'vim', 'tex'},
|
||||
config = function()
|
||||
vim.g.ale_disable_lsp = 1
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
---- Other IDE features
|
||||
use { -- git integration
|
||||
'lewis6991/gitsigns.nvim',
|
||||
|
@ -133,6 +133,10 @@ return require('packer').startup(function()
|
|||
-- Conveniences
|
||||
use { -- Undo tree
|
||||
'mbbill/undotree',
|
||||
config = function()
|
||||
vim.cmd 'nnoremap <F5> <cmd>UndotreeToggle<CR>'
|
||||
vim.api.nvim_set_keymap("n", "<F5>", "<cmd>UndotreeToggle<CR>", { noremap = true, silent = true, })
|
||||
end
|
||||
}
|
||||
use { -- Quote pairing
|
||||
'jiangmiao/auto-pairs'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue