From ff39e091fed63e9581c210e353bc35809cd3ad08 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 6 Aug 2021 14:25:03 +0200 Subject: [PATCH] add few nv-ide plugins --- configs/nvim/lua/plugins/init.lua | 116 +++++++++++++++--- configs/nvim/lua/plugins/nvim-comment.lua | 7 -- configs/nvim/lua/plugins/nvim-ctrlsf.lua | 9 ++ .../nvim/lua/plugins/nvim-editorconfig.lua | 7 ++ configs/nvim/lua/plugins/nvim-feline.lua | 7 ++ configs/nvim/lua/plugins/nvim-gutentags.lua | 17 +++ .../lua/plugins/nvim-indent-blankline.lua | 12 ++ configs/nvim/lua/plugins/nvim-lightspeed.lua | 7 ++ configs/nvim/lua/plugins/nvim-lspkind.lua | 9 ++ configs/nvim/lua/plugins/nvim-neoscroll.lua | 7 ++ configs/nvim/lua/plugins/nvim-numb.lua | 10 ++ configs/nvim/lua/plugins/nvim-signature.lua | 8 ++ .../nvim/lua/plugins/nvim-todo-comments.lua | 7 ++ configs/nvim/lua/plugins/nvim-treesitter.lua | 2 +- 14 files changed, 199 insertions(+), 26 deletions(-) delete mode 100644 configs/nvim/lua/plugins/nvim-comment.lua create mode 100644 configs/nvim/lua/plugins/nvim-ctrlsf.lua create mode 100644 configs/nvim/lua/plugins/nvim-editorconfig.lua create mode 100644 configs/nvim/lua/plugins/nvim-feline.lua create mode 100644 configs/nvim/lua/plugins/nvim-gutentags.lua create mode 100644 configs/nvim/lua/plugins/nvim-indent-blankline.lua create mode 100644 configs/nvim/lua/plugins/nvim-lightspeed.lua create mode 100644 configs/nvim/lua/plugins/nvim-lspkind.lua create mode 100644 configs/nvim/lua/plugins/nvim-neoscroll.lua create mode 100644 configs/nvim/lua/plugins/nvim-numb.lua create mode 100644 configs/nvim/lua/plugins/nvim-signature.lua create mode 100644 configs/nvim/lua/plugins/nvim-todo-comments.lua diff --git a/configs/nvim/lua/plugins/init.lua b/configs/nvim/lua/plugins/init.lua index 6199d52..24b19f0 100644 --- a/configs/nvim/lua/plugins/init.lua +++ b/configs/nvim/lua/plugins/init.lua @@ -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 diff --git a/configs/nvim/lua/plugins/nvim-comment.lua b/configs/nvim/lua/plugins/nvim-comment.lua deleted file mode 100644 index 8224471..0000000 --- a/configs/nvim/lua/plugins/nvim-comment.lua +++ /dev/null @@ -1,7 +0,0 @@ -local function init() - require('nvim_comment').setup() -end - -return { - init = init -} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-ctrlsf.lua b/configs/nvim/lua/plugins/nvim-ctrlsf.lua new file mode 100644 index 0000000..c97c136 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-ctrlsf.lua @@ -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 +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-editorconfig.lua b/configs/nvim/lua/plugins/nvim-editorconfig.lua new file mode 100644 index 0000000..edcc6fd --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-editorconfig.lua @@ -0,0 +1,7 @@ +local function init() + g.EditorConfig_exclude_patterns = { 'fugitive://.*', 'scp://.*' } +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-feline.lua b/configs/nvim/lua/plugins/nvim-feline.lua new file mode 100644 index 0000000..2ca3ac9 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-feline.lua @@ -0,0 +1,7 @@ +local function init() + require('feline').setup() +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-gutentags.lua b/configs/nvim/lua/plugins/nvim-gutentags.lua new file mode 100644 index 0000000..bf733b9 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-gutentags.lua @@ -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 +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-indent-blankline.lua b/configs/nvim/lua/plugins/nvim-indent-blankline.lua new file mode 100644 index 0000000..9c5a278 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-indent-blankline.lua @@ -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 +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-lightspeed.lua b/configs/nvim/lua/plugins/nvim-lightspeed.lua new file mode 100644 index 0000000..e3fbd94 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-lightspeed.lua @@ -0,0 +1,7 @@ +local function init() + require("lightspeed").setup {} +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-lspkind.lua b/configs/nvim/lua/plugins/nvim-lspkind.lua new file mode 100644 index 0000000..b240e21 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-lspkind.lua @@ -0,0 +1,9 @@ +local function init() + require('lspkind').init { + with_text = true, + } +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-neoscroll.lua b/configs/nvim/lua/plugins/nvim-neoscroll.lua new file mode 100644 index 0000000..45c4efe --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-neoscroll.lua @@ -0,0 +1,7 @@ +local function init() + require('neoscroll').setup() +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-numb.lua b/configs/nvim/lua/plugins/nvim-numb.lua new file mode 100644 index 0000000..a2cec5a --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-numb.lua @@ -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 +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-signature.lua b/configs/nvim/lua/plugins/nvim-signature.lua new file mode 100644 index 0000000..9f93972 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-signature.lua @@ -0,0 +1,8 @@ +local function init() + g.SignatureMarkTextHLDynamic = 1 + g.SignatureMarkerTextHLDynamic = 1 +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-todo-comments.lua b/configs/nvim/lua/plugins/nvim-todo-comments.lua new file mode 100644 index 0000000..29274e3 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-todo-comments.lua @@ -0,0 +1,7 @@ +local function init() + require("todo-comments").setup {} +end + +return { + init = init +} \ No newline at end of file diff --git a/configs/nvim/lua/plugins/nvim-treesitter.lua b/configs/nvim/lua/plugins/nvim-treesitter.lua index 72f554b..1f64e47 100644 --- a/configs/nvim/lua/plugins/nvim-treesitter.lua +++ b/configs/nvim/lua/plugins/nvim-treesitter.lua @@ -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, },