diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/remap.lua | 4 | ||||
| -rw-r--r-- | lua/plugins/marks.lua | 8 | ||||
| -rw-r--r-- | lua/plugins/telescope.lua | 5 |
3 files changed, 15 insertions, 2 deletions
diff --git a/lua/config/remap.lua b/lua/config/remap.lua index 78a17ab..d860c37 100644 --- a/lua/config/remap.lua +++ b/lua/config/remap.lua @@ -8,3 +8,7 @@ vim.api.nvim_set_keymap('n', ';', ":", { noremap = true }) vim.opt.expandtab = false vim.opt.tabstop = 8 vim.opt.shiftwidth = 8 + +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.signcolumn = "number" diff --git a/lua/plugins/marks.lua b/lua/plugins/marks.lua new file mode 100644 index 0000000..2add911 --- /dev/null +++ b/lua/plugins/marks.lua @@ -0,0 +1,8 @@ +return { + "chentoast/marks.nvim", + config = function() + require("marks").setup({ + default_mappings = true + }) + end +} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 3b861b9..4c90a21 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -11,8 +11,9 @@ return { require('telescope').setup({}) local builtin = require('telescope.builtin') - vim.keymap.set('n', '<leader>pf', builtin.find_files, {}) - vim.keymap.set('n', '<C-p>', builtin.git_files, {}) + vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) + vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) + vim.keymap.set('n', '<leader>fp', builtin.git_files, {}) vim.keymap.set('n', '<leader>pws', function() local word = vim.fn.expand("<cword>") builtin.grep_string({ search = word }) |
