From d69a6605d0e10d980d8d97056cfb440e0485af0b Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 25 Jul 2024 15:07:30 +0200 Subject: [PATCH] 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 --- dot_config/nvim/lua/core/keybinds.lua | 16 ++++++++++++++++ dot_config/nvim/lua/core/options.lua | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 dot_config/nvim/lua/core/keybinds.lua create mode 100644 dot_config/nvim/lua/core/options.lua diff --git a/dot_config/nvim/lua/core/keybinds.lua b/dot_config/nvim/lua/core/keybinds.lua new file mode 100644 index 0000000..ce858de --- /dev/null +++ b/dot_config/nvim/lua/core/keybinds.lua @@ -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', 'v', 'CHADopen') + +-- Telescope +local builtin = require('telescope.builtin') +vim.keymap.set('n', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fg', builtin.live_grep, {}) +vim.keymap.set('n', 'fb', builtin.buffers, {}) +vim.keymap.set('n', 'fh', builtin.help_tags, {}) diff --git a/dot_config/nvim/lua/core/options.lua b/dot_config/nvim/lua/core/options.lua new file mode 100644 index 0000000..05d66de --- /dev/null +++ b/dot_config/nvim/lua/core/options.lua @@ -0,0 +1,3 @@ +vim.cmd.colorscheme "catppuccin-frappe" +vim.g.mapleader = " " +vim.wo.relativenumber = true