diff --git a/init.lua b/init.lua index bc5854b..fa6e420 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ require("config.lazy") +require("config.keybinds") -- set theme vim.cmd.colorscheme "catppuccin-frappe" @@ -6,3 +7,8 @@ vim.cmd.colorscheme "catppuccin-frappe" -- relative linenumbers vim.wo.relativenumber = true vim.wo.number = true + +-- tab-width +vim.opt.shiftwidth = 4 +vim.opt.tabstop = 4 + diff --git a/lazy-lock.json b/lazy-lock.json index f845c8b..f3206da 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,5 +1,6 @@ { + "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "catppuccin": { "branch": "main", "commit": "c89184526212e04feffbddda9d06b041a8fca416" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, - "mason.nvim": { "branch": "main", "commit": "a83eabdc8c49c0c93bf5bb162fa3b57404a9d095" } + "mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" } } diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua new file mode 100644 index 0000000..7b0c132 --- /dev/null +++ b/lua/config/keybinds.lua @@ -0,0 +1 @@ +vim.api.nvim_set_keymap('n', '', ':set wrap!\n', {}) diff --git a/lua/plugins/comment.lua b/lua/plugins/comment.lua new file mode 100644 index 0000000..c423536 --- /dev/null +++ b/lua/plugins/comment.lua @@ -0,0 +1,9 @@ +return { + 'numToStr/Comment.nvim', + opts = { + -- add any options here + toggler = { + line = "" + } + } +}