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:
parent
81d8258f20
commit
d69a6605d0
2 changed files with 19 additions and 0 deletions
16
dot_config/nvim/lua/core/keybinds.lua
Normal file
16
dot_config/nvim/lua/core/keybinds.lua
Normal 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, {})
|
3
dot_config/nvim/lua/core/options.lua
Normal file
3
dot_config/nvim/lua/core/options.lua
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
vim.cmd.colorscheme "catppuccin-frappe"
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.wo.relativenumber = true
|
Loading…
Reference in a new issue