add few nv-ide plugins
This commit is contained in:
parent
8a0e04ee07
commit
ff39e091fe
14 changed files with 199 additions and 26 deletions
|
@ -3,45 +3,125 @@ function configure_packages()
|
|||
call_with_helpers(require('plugins.compe').init)
|
||||
call_with_helpers(require('plugins.nvim-treesitter').init)
|
||||
call_with_helpers(require('plugins.nvim-web-devicons').init)
|
||||
call_with_helpers(require('plugins.nvim-comment').init)
|
||||
call_with_helpers(require('plugins.nvim-autopairs').init)
|
||||
call_with_helpers(require('plugins.nvim-notify').init)
|
||||
call_with_helpers(require('plugins.nvim-hlslens').init)
|
||||
call_with_helpers(require('plugins.nvim-flutter-tools').init)
|
||||
call_with_helpers(require('plugins.nvim-fterm').init)
|
||||
call_with_helpers(require('plugins.nvim-feline').init)
|
||||
call_with_helpers(require('plugins.nvim-todo-comments').init)
|
||||
call_with_helpers(require('plugins.nvim-lightspeed').init)
|
||||
call_with_helpers(require('plugins.nvim-numb').init)
|
||||
call_with_helpers(require('plugins.nvim-neoscroll').init)
|
||||
call_with_helpers(require('plugins.nvim-lspkind').init)
|
||||
call_with_helpers(require('plugins.nvim-signature').init)
|
||||
call_with_helpers(require('plugins.nvim-gutentags').init)
|
||||
call_with_helpers(require('plugins.nvim-indent-blankline').init)
|
||||
call_with_helpers(require('plugins.nvim-editorconfig').init)
|
||||
call_with_helpers(require('plugins.nvim-ctrlsf').init)
|
||||
end
|
||||
|
||||
function install_packages()
|
||||
-- Packer can manage itself
|
||||
-- Packer can manage itself as an optional plugin
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use 'dracula/vim'
|
||||
use 'whatyouhide/vim-gotham'
|
||||
|
||||
-- LSP
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'onsails/lspkind-nvim'
|
||||
use 'kabouzeid/nvim-lspinstall'
|
||||
|
||||
-- Autocomplete
|
||||
use 'hrsh7th/nvim-compe'
|
||||
use 'shaunsingh/moonlight.nvim'
|
||||
use 'SirVer/ultisnips'
|
||||
use 'honza/vim-snippets'
|
||||
use 'windwp/nvim-autopairs'
|
||||
use 'AndrewRadev/tagalong.vim'
|
||||
use 'andymass/vim-matchup'
|
||||
|
||||
-- Treesitter
|
||||
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
||||
use 'p00f/nvim-ts-rainbow'
|
||||
use 'lukas-reineke/indent-blankline.nvim'
|
||||
use 'JoosepAlviste/nvim-ts-context-commentstring'
|
||||
use 'romgrk/nvim-treesitter-context'
|
||||
|
||||
-- Syntax
|
||||
use 'moll/vim-node'
|
||||
use 'zinit-zsh/zplugin-vim-syntax'
|
||||
use 'editorconfig/editorconfig-vim'
|
||||
use 'chrisbra/csv.vim'
|
||||
use 'npxbr/glow.nvim'
|
||||
use 'junegunn/vim-easy-align'
|
||||
|
||||
-- Icons
|
||||
use 'kyazdani42/nvim-web-devicons'
|
||||
use 'ryanoasis/vim-devicons'
|
||||
|
||||
-- Status Line and Bufferline
|
||||
use 'famiu/feline.nvim' -- A minimal, stylish and customizable statusline for Neovim written in Lua
|
||||
use 'romgrk/barbar.nvim' -- Tabs, as understood by any other editor.
|
||||
|
||||
-- Telescope project search
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}, {'nvim-lua/popup.nvim'}}
|
||||
}
|
||||
use 'nvim-lua/popup.nvim'
|
||||
use 'nvim-lua/plenary.nvim'
|
||||
use 'nvim-telescope/telescope.nvim'
|
||||
use 'nvim-telescope/telescope-fzy-native.nvim'
|
||||
use 'nvim-telescope/telescope-project.nvim'
|
||||
use 'fhill2/telescope-ultisnips.nvim'
|
||||
|
||||
use 'nvim-treesitter/nvim-treesitter'
|
||||
|
||||
use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error
|
||||
-- Explorer
|
||||
use 'kyazdani42/nvim-tree.lua'
|
||||
|
||||
-- Git
|
||||
use 'kdheepak/lazygit.nvim'
|
||||
use 'terrortylor/nvim-comment'
|
||||
use 'rcarriga/nvim-notify' -- fancy notification
|
||||
use 'romgrk/barbar.nvim' -- Tabs, as understood by any other editor.
|
||||
use 'tpope/vim-endwise' -- auto complete block with end
|
||||
|
||||
-- Flutter
|
||||
use 'akinsho/flutter-tools.nvim'
|
||||
|
||||
-- Move & Search & replace
|
||||
use 'windwp/nvim-spectre'
|
||||
use 'nacro90/numb.nvim'
|
||||
use 'dyng/ctrlsf.vim'
|
||||
use 'kevinhwang91/nvim-hlslens' -- nvim-hlslens helps you better glance at matched information, seamlessly jump between matched instances.
|
||||
use 'ggandor/lightspeed.nvim'
|
||||
use 'kshenoy/vim-signature'
|
||||
use 'karb94/neoscroll.nvim'
|
||||
use 'dstein64/nvim-scrollview'
|
||||
use 'chaoren/vim-wordmotion'
|
||||
|
||||
-- Tim Pope docet
|
||||
use 'tpope/vim-sensible'
|
||||
use 'tpope/vim-rails'
|
||||
use 'tpope/vim-abolish'
|
||||
use 'tpope/vim-surround'
|
||||
use 'tpope/vim-bundler'
|
||||
use 'tpope/vim-capslock'
|
||||
use 'tpope/vim-repeat'
|
||||
use 'tpope/vim-endwise' -- auto complete block with end
|
||||
use 'tpope/vim-rvm'
|
||||
use 'tpope/vim-dispatch'
|
||||
use 'tpope/vim-dadbod'
|
||||
use 'tpope/vim-jdaddy'
|
||||
use 'tpope/vim-fugitive'
|
||||
use 'tpope/vim-commentary'
|
||||
|
||||
-- Tmux
|
||||
use 'christoomey/vim-tmux-navigator'
|
||||
|
||||
-- Colorschema
|
||||
use 'dracula/vim'
|
||||
use 'whatyouhide/vim-gotham'
|
||||
use 'shaunsingh/moonlight.nvim'
|
||||
|
||||
-- Tags
|
||||
use 'ludovicchabant/vim-gutentags'
|
||||
|
||||
-- General Plugins
|
||||
use 'rcarriga/nvim-notify' -- fancy notification
|
||||
use 'mfussenegger/nvim-dap' -- debugger
|
||||
use {'akinsho/flutter-tools.nvim', requires = 'nvim-lua/plenary.nvim'}
|
||||
use 'numtostr/FTerm.nvim' -- Floating terminal
|
||||
use 'folke/todo-comments.nvim'
|
||||
use 'lambdalisue/suda.vim'
|
||||
use 'mhinz/vim-startify' -- The fancy start screen for Vim.
|
||||
end
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
local function init()
|
||||
require('nvim_comment').setup()
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
9
configs/nvim/lua/plugins/nvim-ctrlsf.lua
Normal file
9
configs/nvim/lua/plugins/nvim-ctrlsf.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
local function init()
|
||||
g.ctrlsf_ackprg = 'rg'
|
||||
g.ctrls_auto_preview = 1
|
||||
g.ctrlsf_search_mode = 'async'
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
7
configs/nvim/lua/plugins/nvim-editorconfig.lua
Normal file
7
configs/nvim/lua/plugins/nvim-editorconfig.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local function init()
|
||||
g.EditorConfig_exclude_patterns = { 'fugitive://.*', 'scp://.*' }
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
7
configs/nvim/lua/plugins/nvim-feline.lua
Normal file
7
configs/nvim/lua/plugins/nvim-feline.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local function init()
|
||||
require('feline').setup()
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
17
configs/nvim/lua/plugins/nvim-gutentags.lua
Normal file
17
configs/nvim/lua/plugins/nvim-gutentags.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
local function init()
|
||||
cmd('set tags+=tags,.git/tags')
|
||||
g.gutentags_enabled = 1
|
||||
g.gutentags_generate_on_missing = 1
|
||||
g.gutentags_generate_on_write = 1
|
||||
g.gutentags_resolve_symlinks = 1
|
||||
g.gutentags_ctags_tagfile = '.git/tags'
|
||||
g.gutentags_project_root = { '.git' }
|
||||
g.gutentags_ctags_extra_args = { '--fields=+l' }
|
||||
g.gutentags_add_default_project_roots = 0
|
||||
g.gutentags_ctags_executable_ruby = 'ripper-tags'
|
||||
g.gutentags_ctags_extra_args = { '--ignore-unsupported-options', '--recursive' }
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
12
configs/nvim/lua/plugins/nvim-indent-blankline.lua
Normal file
12
configs/nvim/lua/plugins/nvim-indent-blankline.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
local function init()
|
||||
g.indent_blankline_show_current_context = true
|
||||
g.indent_blankline_buftype_exclude = {'terminal'}
|
||||
g.indent_blankline_filetype_exclude = {'help', 'startify', 'dashboard', 'packer', 'neogitstatus', 'NvimTree'}
|
||||
g.indent_blankline_char = '▏'
|
||||
g.indent_blankline_use_treesitter = true
|
||||
g.indent_blankline_show_trailing_blankline_indent = false
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
7
configs/nvim/lua/plugins/nvim-lightspeed.lua
Normal file
7
configs/nvim/lua/plugins/nvim-lightspeed.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local function init()
|
||||
require("lightspeed").setup {}
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
9
configs/nvim/lua/plugins/nvim-lspkind.lua
Normal file
9
configs/nvim/lua/plugins/nvim-lspkind.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
local function init()
|
||||
require('lspkind').init {
|
||||
with_text = true,
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
7
configs/nvim/lua/plugins/nvim-neoscroll.lua
Normal file
7
configs/nvim/lua/plugins/nvim-neoscroll.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local function init()
|
||||
require('neoscroll').setup()
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
10
configs/nvim/lua/plugins/nvim-numb.lua
Normal file
10
configs/nvim/lua/plugins/nvim-numb.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local function init()
|
||||
require('numb').setup {
|
||||
show_numbers = true, -- Enable 'number' for the window while peeking
|
||||
show_cursorline = true -- Enable 'cursorline' for the window while peeking
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
8
configs/nvim/lua/plugins/nvim-signature.lua
Normal file
8
configs/nvim/lua/plugins/nvim-signature.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
local function init()
|
||||
g.SignatureMarkTextHLDynamic = 1
|
||||
g.SignatureMarkerTextHLDynamic = 1
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
7
configs/nvim/lua/plugins/nvim-todo-comments.lua
Normal file
7
configs/nvim/lua/plugins/nvim-todo-comments.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local function init()
|
||||
require("todo-comments").setup {}
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
local function init()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = "maintained", -- list of languages
|
||||
ensure_installed = "all", -- list of languages
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue