Skip to content

Commit 87e77c7

Browse files
committed
More basics for editing
* vim-surround plugin * 120-character column * Remove annoying snippet plugin
1 parent ab3778d commit 87e77c7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

init.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ vim.opt.rtp:prepend(lazypath)
2828
require('lazy').setup({
2929
-- NOTE: First, some plugins that don't require any configuration
3030

31+
-- Manipulate surrounding characters
32+
'tpope/vim-surround',
33+
3134
-- Git related plugins
3235
'tpope/vim-fugitive',
3336
'tpope/vim-rhubarb',
@@ -64,9 +67,6 @@ require('lazy').setup({
6467

6568
-- Adds LSP completion capabilities
6669
'hrsh7th/cmp-nvim-lsp',
67-
68-
-- Adds a number of user-friendly snippets
69-
'rafamadriz/friendly-snippets',
7070
},
7171
},
7272

@@ -229,6 +229,9 @@ vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
229229
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
230230
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
231231

232+
-- Show vertical ruler on column 120
233+
vim.opt.colorcolumn = { '120' }
234+
232235
-- [[ Highlight on yank ]]
233236
-- See `:help vim.highlight.on_yank()`
234237
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })

0 commit comments

Comments
 (0)