feat: update documentation and configuration files for Neovim setup
Signed-off-by: juliano.barbosa <julianomb@gmail.com>
This commit is contained in:
parent
76edf81b0a
commit
7128ca764c
47 changed files with 1956 additions and 1147 deletions
|
|
@ -1,3 +1,28 @@
|
|||
# MIT License
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in all
|
||||
# copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
if not vim then
|
||||
return
|
||||
end
|
||||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
|
||||
return {
|
||||
-- local function map(mode, lhs, rhs, opts)
|
||||
-- local options = { noremap=true, silent=true }
|
||||
|
|
@ -7,31 +32,21 @@ return {
|
|||
-- vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||
-- end
|
||||
|
||||
vim.keymap.set('n', '<leader>ff', ":Telescope find_files<cr>", {}),
|
||||
vim.keymap.set('n', '<leader>fg', ":Telescope live_grep<cr>", {}),
|
||||
vim.keymap.set('n', '<leader>fb', ":Telescope buffers<cr>", {}),
|
||||
vim.keymap.set('n', '<leader>fh', ":Telescope help_tags", {}),
|
||||
vim.keymap.set('n', '<leader>ff', ':Telescope find_files<cr>', {}),
|
||||
vim.keymap.set('n', '<leader>fg', ':Telescope live_grep<cr>', {}),
|
||||
vim.keymap.set('n', '<leader>fb', ':Telescope buffers<cr>', {}),
|
||||
vim.keymap.set('n', '<leader>fh', ':Telescope help_tags', {}),
|
||||
|
||||
-- map("n", "<s-h>", ":bn")
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'<S-h>',
|
||||
":bp<cr>",
|
||||
{
|
||||
buffer = bufnr,
|
||||
desc = '[G]o to [P]revious Buffer'
|
||||
}
|
||||
),
|
||||
vim.keymap.set('n', '<S-h>', ':bp<cr>', {
|
||||
buffer = bufnr,
|
||||
desc = '[G]o to [P]revious Buffer',
|
||||
}),
|
||||
-- map("n", "<s-l>", ":bp")
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'<S-l>',
|
||||
":bn<cr>",
|
||||
{
|
||||
buffer = bufnr,
|
||||
desc = '[G]o to [N]ext Buffer'
|
||||
}
|
||||
)
|
||||
vim.keymap.set('n', '<S-l>', ':bn<cr>', {
|
||||
buffer = bufnr,
|
||||
desc = '[G]o to [N]ext Buffer',
|
||||
}),
|
||||
|
||||
-- map("n", "<leader>bq", ":Bdelete")
|
||||
-- vim.keymap.set(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue