Skip to content

Commit b2fd5f7

Browse files
committed
improve terminal keymap and lsp config
1 parent ee1be1a commit b2fd5f7

File tree

6 files changed

+20
-26
lines changed

6 files changed

+20
-26
lines changed

init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,6 @@ require('lazy').setup({
10271027
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
10281028
{ import = 'custom.plugins' },
10291029
{ import = 'custom.keymaps' },
1030-
{ import = 'custom.setups' },
10311030
--
10321031
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
10331032
-- Or use telescope!

lua/custom/keymaps/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ vim.keymap.set('n', '<leader>bd', function()
4040
vim.cmd 'bdelete!'
4141
end, { desc = 'Close buffer and toggleterm' })
4242

43+
vim.keymap.set('n', '<leader>/', require('telescope.builtin').current_buffer_fuzzy_find, { desc = '[/] Fuzzy search in current buffer' })
44+
vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]], { desc = 'Exit terminal mode' })
45+
4346
return {}

lua/custom/plugins/init.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33
--
44
-- See the kickstart.nvim README for more information
55
return {
6+
{
7+
'akinsho/toggleterm.nvim',
8+
version = '*',
9+
config = function()
10+
require('toggleterm').setup {
11+
direction = 'float',
12+
float_opts = {
13+
border = 'curved',
14+
width = 100,
15+
height = 30,
16+
winblend = 0,
17+
},
18+
open_mapping = [[<C-\>]],
19+
start_in_insert = true,
20+
}
21+
end,
22+
},
623
{
724
'folke/tokyonight.nvim',
825
lazy = false,

lua/custom/setups/init.lua

Lines changed: 0 additions & 3 deletions
This file was deleted.

lua/custom/setups/lsp.lua

Lines changed: 0 additions & 12 deletions
This file was deleted.

lua/custom/setups/term.lua

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)