Add .config/nvim/lua/core/keybinds.lua

Add .config/nvim/lua/core/options.lua
Add .config/nvim/lua/plugins/lsp.lua
Add .config/nvim/lua/plugins/tree-sitter.lua
This commit is contained in:
Anthony Rodriguez 2024-07-25 15:07:30 +02:00
parent 81d8258f20
commit d69a6605d0
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,16 @@
-- lua/core/keymaps.lua
local function map(mode, lhs, rhs, opts)
local options = { noremap = true, silent = true }
if opts then options = vim.tbl_extend('force', options, opts) end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
-- CHADTree
map('n', '<leader>v', '<cmd>CHADopen<CR>')
-- Telescope
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})

View file

@ -0,0 +1,3 @@
vim.cmd.colorscheme "catppuccin-frappe"
vim.g.mapleader = " "
vim.wo.relativenumber = true