added keybinds and config

This commit is contained in:
Simon Ziegler
2025-10-02 13:44:26 +02:00
parent d8dba6591e
commit eac8a20744
4 changed files with 18 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
require("config.lazy") require("config.lazy")
require("config.keybinds")
-- set theme -- set theme
vim.cmd.colorscheme "catppuccin-frappe" vim.cmd.colorscheme "catppuccin-frappe"
@@ -6,3 +7,8 @@ vim.cmd.colorscheme "catppuccin-frappe"
-- relative linenumbers -- relative linenumbers
vim.wo.relativenumber = true vim.wo.relativenumber = true
vim.wo.number = true vim.wo.number = true
-- tab-width
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4

View File

@@ -1,5 +1,6 @@
{ {
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"catppuccin": { "branch": "main", "commit": "c89184526212e04feffbddda9d06b041a8fca416" }, "catppuccin": { "branch": "main", "commit": "c89184526212e04feffbddda9d06b041a8fca416" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"mason.nvim": { "branch": "main", "commit": "a83eabdc8c49c0c93bf5bb162fa3b57404a9d095" } "mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" }
} }

1
lua/config/keybinds.lua Normal file
View File

@@ -0,0 +1 @@
vim.api.nvim_set_keymap('n', '', ':set wrap!\n', {})

9
lua/plugins/comment.lua Normal file
View File

@@ -0,0 +1,9 @@
return {
'numToStr/Comment.nvim',
opts = {
-- add any options here
toggler = {
line = ""
}
}
}