minor neovim changes - I think it's ready to roll

This commit is contained in:
PowerUser64 2021-09-07 01:49:23 -07:00
parent 24fb0019f8
commit bd34387c57
3 changed files with 14 additions and 13 deletions

View file

@ -8,7 +8,7 @@ require('plugins')
-- TODO:
--
-- Misc:
-- [X] map A-S to toggle spell check (see logic from hlsearch section in init.vim)
-- [x] map A-S to toggle spell check (see logic from hlsearch section in init.vim)
--
-- Plugins to Configure
-- [ ] toggleterm

View file

@ -1,12 +1,6 @@
local M = {}
-- chadtree
M.chadtree = function ()
vim.api.nvim_set_keymap('n', '<leader>v', '<cmd>CHADopen<cr>', { noremap = true, silent = true })
-- chadtree_settings.theme.text_colour_set = "trapdoor"
end
-- nvimtree
-- nvimtree >>>
M.nvimtree = function ()
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
-- default mappings
@ -45,8 +39,9 @@ M.nvimtree = function ()
{ key = "g?", cb = tree_cb("toggle_help") },
}
end
-- <<<
-- toggleterm
-- toggleterm >>>
M.toggleterm = function()
require("toggleterm").setup{
-- size can be a number or function which is passed the current terminal
@ -86,7 +81,9 @@ M.toggleterm = function()
}
}
end
-- <<<
return M
-- vim:expandtab:tabstop=3:sw=3
-- vim:fdm=marker:fmr=>>>,<<<:expandtab:tabstop=3:sw=3

View file

@ -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'