Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fagci committed Jun 9, 2022
1 parent 44bbce4 commit 32c3b05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion nvim/.config/nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ map("v", "g<C-x>", require("dial.map").dec_gvisual(), N)

-- My plugins
-- runfile
map('n', '<leader><leader>r', '<cmd>lua require("runfile").run()<CR>', N)
map('n', '<leader>x', '<cmd>lua require("runfile").run()<CR>', N)
20 changes: 9 additions & 11 deletions nvim/.config/nvim/lua/plugins/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ return packer.startup(function(use)
}

-- Completion
use 'onsails/lspkind-nvim'
use 'ray-x/lsp_signature.nvim'
use 'honza/vim-snippets'

use {
'hrsh7th/nvim-cmp',
config = [[
require('plugins.config.nvim-cmp')
require('plugins.config.snippets')
]],
requires = {
{ 'onsails/lspkind-nvim' },
{ 'ray-x/lsp_signature.nvim' },
{ 'honza/vim-snippets' },
{ 'L3MON4D3/LuaSnip' },
{ 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-calc' },
Expand All @@ -58,18 +57,17 @@ return packer.startup(function(use)
config = [[require('plugins.config.null-ls')]]
}

use {
'windwp/nvim-autopairs',
after = 'nvim-cmp',
config = [[require('plugins.config.nvim-autopairs')]],
}

-- Editing
use "tpope/vim-repeat"
use {
'ur4ltz/surround.nvim',
config = [[require "surround".setup {mappings_style = "surround", map_insert_mode = false}]]
}
use {
'windwp/nvim-autopairs',
after = 'nvim-cmp',
config = [[require('plugins.config.nvim-autopairs')]],
}
use 'wellle/targets.vim'
use 'ggandor/lightspeed.nvim'
use { 'mattn/emmet-vim', ft = { 'html', 'css', 'htmldjango', 'twig', 'php' } }
Expand Down Expand Up @@ -122,7 +120,7 @@ return packer.startup(function(use)
use 'mhartington/oceanic-next'

-- my dev plugins
use {'~/.config/nvim/lua/plugins_dev/runfile.nvim', config = [[require('plugins.config.runfile')]]}
use { '~/.config/nvim/lua/plugins_dev/runfile.nvim', config = [[require('plugins.config.runfile')]] }


-- TEST ZONE
Expand Down

0 comments on commit 32c3b05

Please sign in to comment.