Merge branch 'neovim-0.5.0' of github.com:esensar/dotfiles into neovim-0.5.0

pull/1/head
Ensar Sarajčić 2021-03-04 16:18:18 +01:00
commit 6a54eb713b
2 changed files with 85 additions and 63 deletions

View File

@ -2,7 +2,7 @@ return require('packer').startup {
function(use) function(use)
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
-- Tpope general improvements -- Tpope general improvements --
use 'tpope/vim-sensible' -- Sane defaults use 'tpope/vim-sensible' -- Sane defaults
use 'tpope/vim-endwise' -- Add closing statements automatically for if, function etc use 'tpope/vim-endwise' -- Add closing statements automatically for if, function etc
use 'tpope/vim-surround' -- Surround with ', ", etc use 'tpope/vim-surround' -- Surround with ', ", etc
@ -18,18 +18,22 @@ return require('packer').startup {
use 'tpope/vim-commentary' -- Commenting motion use 'tpope/vim-commentary' -- Commenting motion
use 'tpope/vim-sleuth' -- Intendation heuristics use 'tpope/vim-sleuth' -- Intendation heuristics
-- General improvements -- General improvements --
use 'airblade/vim-gitgutter' -- Git signs use 'airblade/vim-gitgutter' -- Git signs
use 'godlygeek/tabular' -- Tabular command for alignment use 'godlygeek/tabular' -- Tabular command for alignment
-- use { 'Shougo/vimproc.vim', run = 'make' } -- Not really used -- use { 'Shougo/vimproc.vim', run = 'make' } -- Not really used
use 'vim-scripts/utl.vim' -- Universal text linking use 'vim-scripts/utl.vim' -- Universal text linking
use { 'mbbill/undotree', cmd = 'UndotreeToggle' } -- Undos in a tree for easy access use { --
'mbbill/undotree', --
cmd = 'UndotreeToggle' --
} -- Undos in a tree for easy access
use 'mhinz/vim-grepper' -- Grepper command - improved grepping throughout project use 'mhinz/vim-grepper' -- Grepper command - improved grepping throughout project
use 'radenling/vim-dispatch-neovim' -- vim-dispatch for neovim - uses terminal use 'radenling/vim-dispatch-neovim' -- vim-dispatch for neovim - uses terminal
use 'wellle/targets.vim' -- Additional targets for inside and around motions use 'wellle/targets.vim' -- Additional targets for inside and around motions
use 'flazz/vim-colorschemes' -- All popular colorschemes use 'flazz/vim-colorschemes' -- All popular colorschemes
use 'romainl/vim-qf' -- Quickfix list upgrades
-- Tools -- Tools --
use 'direnv/direnv.vim' -- Integration with Direnv use 'direnv/direnv.vim' -- Integration with Direnv
use 'vim-test/vim-test' -- Running tests from vim use 'vim-test/vim-test' -- Running tests from vim
use 'dense-analysis/ale' -- Asynchronous Lint Engine - used for linting, not for LSP use 'dense-analysis/ale' -- Asynchronous Lint Engine - used for linting, not for LSP
@ -37,14 +41,14 @@ return require('packer').startup {
use 'mfussenegger/nvim-dap' -- Debug Adapter Protocol use 'mfussenegger/nvim-dap' -- Debug Adapter Protocol
use 'theHamsta/nvim-dap-virtual-text' -- Virtual text display for DAP use 'theHamsta/nvim-dap-virtual-text' -- Virtual text display for DAP
-- Snippets -- Snippets --
if vim.g.loaded_python3_provider ~= 0 if vim.g.loaded_python3_provider ~= 0 --
then then --
use 'SirVer/ultisnips' -- Snippets in python format use 'SirVer/ultisnips' -- Snippets in python format
use 'honza/vim-snippets' -- Collection of snippets for UltiSnips use 'honza/vim-snippets' -- Collection of snippets for UltiSnips
end end --
-- Language support -- Language support --
use 'sheerun/vim-polyglot' -- All popular languages use 'sheerun/vim-polyglot' -- All popular languages
use 'tpope/vim-rails' -- Enables all rails command through vim and integrates with projectionist use 'tpope/vim-rails' -- Enables all rails command through vim and integrates with projectionist
use 'c-brenn/phoenix.vim' -- Similar to vim-rails, but for phoenix use 'c-brenn/phoenix.vim' -- Similar to vim-rails, but for phoenix
@ -53,24 +57,27 @@ return require('packer').startup {
use 'vimwiki/vimwiki' -- Vimwiki - personal wiki in vim use 'vimwiki/vimwiki' -- Vimwiki - personal wiki in vim
use 'ledger/vim-ledger' -- Support for ledger-cli format use 'ledger/vim-ledger' -- Support for ledger-cli format
-- Treesitter -- Treesitter --
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' } -- Treesitter integration use { --
'nvim-treesitter/nvim-treesitter', --
run = ':TSUpdate' --
} -- Treesitter integration
use 'nvim-treesitter/playground' -- TSPlaygroundToggle - access treesitter data use 'nvim-treesitter/playground' -- TSPlaygroundToggle - access treesitter data
-- LSP -- LSP --
-- use 'tjdevries/nlua.nvim' -- use 'tjdevries/nlua.nvim' -- Built-in Lua integration with LSP
use 'neovim/nvim-lspconfig' -- Easy LSP Config use 'neovim/nvim-lspconfig' -- Easy LSP Config
use 'alexaandru/nvim-lspupdate' -- Easy install and update for many LSP servers use 'alexaandru/nvim-lspupdate' -- Easy install and update for many LSP servers
use 'nvim-lua/completion-nvim' -- LSP completion integration use 'nvim-lua/completion-nvim' -- LSP completion integration
use 'nvim-treesitter/completion-treesitter' -- Treesitter completion integration use 'nvim-treesitter/completion-treesitter' -- Treesitter completion integration
use 'nvim-lua/lsp_extensions.nvim' -- LSP extensions (like closing labels for Dart) use 'nvim-lua/lsp_extensions.nvim' -- LSP extensions (like closing labels for Dart)
-- Lua support -- Lua support --
use 'tjdevries/astronauta.nvim' -- Support for lua ftplugins and plugins use 'tjdevries/astronauta.nvim' -- Support for lua ftplugins and plugins
use 'nvim-lua/popup.nvim' -- Popup API integration - needed for some plugins use 'nvim-lua/popup.nvim' -- Popup API integration - needed for some plugins
use 'nvim-lua/plenary.nvim' -- Lua helpers use 'nvim-lua/plenary.nvim' -- Lua helpers
-- Telescope -- Telescope --
use 'nvim-telescope/telescope.nvim' -- Fuzzy searcher use 'nvim-telescope/telescope.nvim' -- Fuzzy searcher
use 'nvim-telescope/telescope-dap.nvim' -- DAP integration for Telescope use 'nvim-telescope/telescope-dap.nvim' -- DAP integration for Telescope
end end

View File

@ -2,7 +2,22 @@
-- - Telescope configuration - -- - Telescope configuration -
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
local actions = require('telescope.actions')
require('telescope').setup { require('telescope').setup {
defaults = {
mappings = {
i = {
-- Switch out M-q and C-q since C-q will be used more often
["<M-q>"] = actions.send_to_qflist + actions.open_qflist,
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
},
n = {
-- Switch out M-q and C-q since C-q will be used more often
["<M-q>"] = actions.send_to_qflist + actions.open_qflist,
["<C-q>"] = actions.send_selected_to_qflist + actions.open_qflist,
}
},
}
} }
require('telescope').load_extension('dap') require('telescope').load_extension('dap')