More basics for editing

* vim-surround plugin
* 120-character column
* Remove annoying snippet plugin
pull/1456/head
Zach Zolton 2 years ago
parent ab3778d9ac
commit 87e77c7c58
No known key found for this signature in database

@ -28,6 +28,9 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
-- NOTE: First, some plugins that don't require any configuration
-- Manipulate surrounding characters
'tpope/vim-surround',
-- Git related plugins
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
@ -64,9 +67,6 @@ require('lazy').setup({
-- Adds LSP completion capabilities
'hrsh7th/cmp-nvim-lsp',
-- Adds a number of user-friendly snippets
'rafamadriz/friendly-snippets',
},
},
@ -229,6 +229,9 @@ vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
-- Show vertical ruler on column 120
vim.opt.colorcolumn = { '120' }
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })

Loading…
Cancel
Save