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: -- TODO:
-- --
-- Misc: -- 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 -- Plugins to Configure
-- [ ] toggleterm -- [ ] toggleterm

View file

@ -1,12 +1,6 @@
local M = {} local M = {}
-- chadtree -- nvimtree >>>
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
M.nvimtree = function () M.nvimtree = function ()
local tree_cb = require'nvim-tree.config'.nvim_tree_callback local tree_cb = require'nvim-tree.config'.nvim_tree_callback
-- default mappings -- default mappings
@ -45,8 +39,9 @@ M.nvimtree = function ()
{ key = "g?", cb = tree_cb("toggle_help") }, { key = "g?", cb = tree_cb("toggle_help") },
} }
end end
-- <<<
-- toggleterm -- toggleterm >>>
M.toggleterm = function() M.toggleterm = function()
require("toggleterm").setup{ require("toggleterm").setup{
-- size can be a number or function which is passed the current terminal -- size can be a number or function which is passed the current terminal
@ -86,7 +81,9 @@ M.toggleterm = function()
} }
} }
end end
-- <<<
return M 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 -- Load plugins
-- Bootstrap packer if needed -- Bootstrap packer if needed {
local fn = vim.fn local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd 'packadd packer.nvim' vim.cmd 'packadd packer.nvim'
end end
-- }
return require('packer').startup(function() return require('packer').startup(function()
-- Packer -- Packer
@ -88,13 +89,12 @@ return require('packer').startup(function()
} }
use { -- ALE: Support for lots of linters, etc use { -- ALE: Support for lots of linters, etc
'dense-analysis/ale', '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() config = function()
vim.g.ale_disable_lsp = 1 vim.g.ale_disable_lsp = 1
end end
} }
---- Other IDE features ---- Other IDE features
use { -- git integration use { -- git integration
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
@ -133,6 +133,10 @@ return require('packer').startup(function()
-- Conveniences -- Conveniences
use { -- Undo tree use { -- Undo tree
'mbbill/undotree', '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 use { -- Quote pairing
'jiangmiao/auto-pairs' 'jiangmiao/auto-pairs'