NVIM Configs in Lua #1

Merged
tyrel merged 4 commits from nvim into main 2023-01-02 20:38:02 +00:00
2 changed files with 6 additions and 10 deletions
Showing only changes of commit d2c7d381d0 - Show all commits

View File

@ -31,9 +31,7 @@ return function(use)
use({'hashivim/vim-terraform'}) use({'hashivim/vim-terraform'})
use({'rmagatti/auto-session'}) use({'rmagatti/auto-session'})
use({'rmagatti/session-lens', use({'rmagatti/session-lens',
config = function(){ config = function() require'session-lens'.setup { path_display={'shorten'} } end
require'session-lens'.setup { path_display={'shorten'}, }
}
}) })
use({'ludovicchabant/vim-gutentags'}) use({'ludovicchabant/vim-gutentags'})
-- use({'ervandew/supertab'}) -- use({'ervandew/supertab'})
@ -52,9 +50,7 @@ return function(use)
} }
use({ use({
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
config = function () { config = function () require('telescope').setup{ file_ignore_patterns = {"node_modules","./venv/"} } end
require('telescope').setup{ file_ignore_patterns = {"node_modules","./venv/"}, }
}
}) })
use({'thoughtbot/vim-rspec'}) use({'thoughtbot/vim-rspec'})
use({'voldikss/vim-floaterm'}) use({'voldikss/vim-floaterm'})

View File

@ -93,10 +93,10 @@ _G.s_tab_complete = function()
end end
end end
vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", { expr = true }) -- vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", { expr = true })
vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", { expr = true }) -- vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", { expr = true })
vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true }) -- vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true }) -- vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
map("v", ">", ">gv", {}) -- Retain visual select when indenting map("v", ">", ">gv", {}) -- Retain visual select when indenting
map("v", "<", "<gv", {}) -- Retain visual select when indenting map("v", "<", "<gv", {}) -- Retain visual select when indenting