Add surround plugin
This commit is contained in:
parent
87861d3756
commit
b73e32f99d
5 changed files with 41 additions and 20 deletions
4
lua/custom/plugins/ftplugin/cpp.lua
Normal file
4
lua/custom/plugins/ftplugin/cpp.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
vim.bo.tabstop = 3 -- size of a hard tabstop (ts).
|
||||
vim.bo.shiftwidth = 3 -- size of an indentation (sw).
|
||||
vim.bo.expandtab = true -- always uses spaces instead of tab characters (et).
|
||||
vim.bo.softtabstop = 3 -- number of spaces a <Tab> counts for. When 0, feature is off (sts).
|
||||
4
lua/custom/plugins/ftplugin/js.lua
Normal file
4
lua/custom/plugins/ftplugin/js.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
vim.bo.tabstop = 3 -- size of a hard tabstop (ts).
|
||||
vim.bo.shiftwidth = 3 -- size of an indentation (sw).
|
||||
vim.bo.expandtab = true -- always uses spaces instead of tab characters (et).
|
||||
vim.bo.softtabstop = 3 -- number of spaces a <Tab> counts for. When 0, feature is off (sts).
|
||||
10
lua/custom/plugins/surround.lua
Normal file
10
lua/custom/plugins/surround.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
'kylechui/nvim-surround',
|
||||
version = '*', -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = 'VeryLazy',
|
||||
config = function()
|
||||
require('nvim-surround').setup {
|
||||
-- Configuration here, or leave empty to use defaults
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue