Skip to content

Commit cc29de3

Browse files
committed
Add your own plugin
1 parent c3ac741 commit cc29de3

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ require('lazy').setup({
10321032
--
10331033
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
10341034
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
1035-
-- { import = 'custom.plugins' },
1035+
{ import = 'custom.plugins' },
10361036
}, {
10371037
ui = {
10381038
-- If you are using a Nerd Font: set icons to an empty table which will use the

lua/custom/plugins/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
-- I promise not to create any merge conflicts in this directory :)
33
--
44
-- See the kickstart.nvim README for more information
5-
return {}
5+
return {
6+
{ dir = '~/.config/nvim/lua/custom/toms.nvim/' },
7+
}

lua/custom/toms.nvim/lua/toms.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
print 'loaded tom.lua'
2+
3+
function List_bufs()
4+
vim.print(vim.api.nvim_list_bufs())
5+
end
6+
7+
-- function ListDiag()
8+
--
9+
-- vim.print(vim.
10+
-- end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'toms'

0 commit comments

Comments
 (0)