Change shiftwidth to 4, fix indentation in lua files. Disable TS in help pages (0.8 bug)

This commit is contained in:
Evie Litherland-Smith 2022-11-02 13:40:30 +00:00
parent f848fabc23
commit 4cba0df0be
13 changed files with 307 additions and 304 deletions

View file

@ -12,6 +12,7 @@ vim.opt.updatetime=500
vim.opt.mouse="nv" vim.opt.mouse="nv"
vim.opt.termguicolors=true vim.opt.termguicolors=true
vim.opt.shiftwidth=4
vim.opt.number=true vim.opt.number=true
vim.opt.relativenumber=true vim.opt.relativenumber=true
vim.opt.listchars = { trail = '.', tab = '>_' } vim.opt.listchars = { trail = '.', tab = '>_' }

View file

@ -9,159 +9,159 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, opts)
-- Use an on_attach function to only map the following keys -- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer -- after the language server attaches to the current buffer
local on_attach = function(client, bufnr) local on_attach = function(client, bufnr)
-- Enable completion triggered by <c-x><c-o> -- Enable completion triggered by <c-x><c-o>
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings. -- Mappings.
-- See `:help vim.lsp.*` for documentation on any of the below functions -- See `:help vim.lsp.*` for documentation on any of the below functions
local bufopts = { noremap=true, silent=true, buffer=bufnr } local bufopts = { noremap=true, silent=true, buffer=bufnr }
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts) vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts) vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts) vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts)
-- vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts) -- vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)
vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts) vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts) vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wl', function() vim.keymap.set('n', '<leader>wl', function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders())) print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, bufopts) end, bufopts)
vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, bufopts) vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, bufopts)
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts)
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
vim.keymap.set('n', '<leader>i', vim.lsp.buf.formatting, bufopts) vim.keymap.set('n', '<leader>i', vim.lsp.buf.formatting, bufopts)
-- Enable aerial support -- Enable aerial support
require("aerial").on_attach(client, bufnr) require("aerial").on_attach(client, bufnr)
end end
local lsp_flags = { local lsp_flags = {
-- This is the default in Nvim 0.7+ -- This is the default in Nvim 0.7+
debounce_text_changes = 150, debounce_text_changes = 150,
} }
-- Setup nvim-cmp. -- Setup nvim-cmp.
local cmp = require'cmp' local cmp = require'cmp'
cmp.setup({ cmp.setup({
snippet = { snippet = {
-- REQUIRED - you must specify a snippet engine -- REQUIRED - you must specify a snippet engine
expand = function(args) expand = function(args)
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
-- require('luasnip').lsp_expand(args.body) -- For `luasnip` users. -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
-- require('snippy').expand_snippet(args.body) -- For `snippy` users. -- require('snippy').expand_snippet(args.body) -- For `snippy` users.
-- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users. -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
end, end,
}, },
window = { window = {
-- completion = cmp.config.window.bordered(), -- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(), -- documentation = cmp.config.window.bordered(),
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(), ['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}), }),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'vsnip' }, -- For vsnip users. { name = 'vsnip' }, -- For vsnip users.
-- { name = 'luasnip' }, -- For luasnip users. -- { name = 'luasnip' }, -- For luasnip users.
-- { name = 'ultisnips' }, -- For ultisnips users. -- { name = 'ultisnips' }, -- For ultisnips users.
-- { name = 'snippy' }, -- For snippy users. -- { name = 'snippy' }, -- For snippy users.
}, { }, {
{ name = 'buffer' }, { name = 'buffer' },
}) })
}) })
-- Set configuration for specific filetype. -- Set configuration for specific filetype.
cmp.setup.filetype('gitcommit', { cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it. { name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
}, { }, {
{ name = 'buffer' }, { name = 'buffer' },
}) })
}) })
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore). -- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline('/', { cmp.setup.cmdline('/', {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = { sources = {
{ name = 'buffer' } { name = 'buffer' }
} }
}) })
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(':', { cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'path' } { name = 'path' }
}, { }, {
{ name = 'cmdline' } { name = 'cmdline' }
}) })
}) })
-- Setup lspconfig. -- Setup lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities()) local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
local function file_exists(name) local function file_exists(name)
local f=io.open(name,"r") local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end if f~=nil then io.close(f) return true else return false end
end end
local pyright_file = os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/pyright-langserver" local pyright_file = os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/pyright-langserver"
local pylsp_file = os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/pylsp" local pylsp_file = os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/pylsp"
if file_exists(pyright_file) then if file_exists(pyright_file) then
require('lspconfig')['pyright'].setup{ require('lspconfig')['pyright'].setup{
cmd = {pyright_file, "--stdio"}, cmd = {pyright_file, "--stdio"},
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
capabilities = capabilities, capabilities = capabilities,
} }
elseif file_exists(pylsp_file) then elseif file_exists(pylsp_file) then
require('lspconfig')['pylsp'].setup{ require('lspconfig')['pylsp'].setup{
cmd = {pylsp_file}, cmd = {pylsp_file},
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
settings = { settings = {
pylsp = { pylsp = {
plugins = { plugins = {
pycodestyle = {maxLineLength = 88}, pycodestyle = {maxLineLength = 88},
flake8 = {maxLineLength = 88} flake8 = {maxLineLength = 88}
}
} }
}, }
capabilities = capabilities },
} capabilities = capabilities
}
end end
require('lspconfig')['fortls'].setup{ require('lspconfig')['fortls'].setup{
cmd = {os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/fortls"}, cmd = {os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/fortls"},
on_attach = on_attach, on_attach = on_attach,
flags = lsp_flags, flags = lsp_flags,
capabilities = capabilities capabilities = capabilities
} }
require('lspconfig')['sumneko_lua'].setup { require('lspconfig')['sumneko_lua'].setup {
settings = { settings = {
Lua = { Lua = {
runtime = { runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim) -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT', version = 'LuaJIT',
}, },
diagnostics = { diagnostics = {
-- Get the language server to recognize the `vim` global -- Get the language server to recognize the `vim` global
globals = {'vim'}, globals = {'vim'},
}, },
workspace = { workspace = {
-- Make the server aware of Neovim runtime files -- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true), library = vim.api.nvim_get_runtime_file("", true),
}, },
-- Do not send telemetry data containing a randomized but unique identifier -- Do not send telemetry data containing a randomized but unique identifier
telemetry = { telemetry = {
enable = false, enable = false,
}, },
},
}, },
},
} }

View file

@ -1,13 +1,13 @@
require('aerial').setup{ require('aerial').setup{
on_attach = function(bufnr) on_attach = function(bufnr)
-- Toggle the aerial window with <leader>a -- Toggle the aerial window with <leader>a
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>k', '<cmd>AerialToggle!<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>k', '<cmd>AerialToggle!<CR>', {})
-- Jump forwards/backwards with '{' and '}' -- Jump forwards/backwards with '{' and '}'
vim.api.nvim_buf_set_keymap(bufnr, 'n', '{', '<cmd>AerialPrev<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '{', '<cmd>AerialPrev<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '}', '<cmd>AerialNext<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '}', '<cmd>AerialNext<CR>', {})
-- Jump up the tree with '[[' or ']]' -- Jump up the tree with '[[' or ']]'
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[[', '<cmd>AerialPrevUp<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '[[', '<cmd>AerialPrevUp<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', '<cmd>AerialNextUp<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', '<cmd>AerialNextUp<CR>', {})
end, end,
} }

View file

@ -1,21 +1,21 @@
require('gitsigns').setup{ require('gitsigns').setup{
signcolumn = true, signcolumn = true,
numhl = true, numhl = true,
linehl = true, linehl = true,
current_line_blame = true, current_line_blame = true,
on_attach = function(bufnr) on_attach = function(bufnr)
-- Setup keymaps -- Setup keymaps
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[g', '<cmd>Gitsigns prev_hunk<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '[g', '<cmd>Gitsigns prev_hunk<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']g', '<cmd>Gitsigns next_hunk<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', ']g', '<cmd>Gitsigns next_hunk<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gd', '<cmd>Gitsigns diffthis<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gd', '<cmd>Gitsigns diffthis<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gq', '<cmd>Gitsigns setqflist<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gq', '<cmd>Gitsigns setqflist<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gl', '<cmd>Gitsigns setloclist<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>gl', '<cmd>Gitsigns setloclist<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hp', '<cmd>Gitsigns preview_hunk<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hp', '<cmd>Gitsigns preview_hunk<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hs', '<cmd>Gitsigns stage_hunk<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hs', '<cmd>Gitsigns stage_hunk<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hr', '<cmd>Gitsigns reset_hunk<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hr', '<cmd>Gitsigns reset_hunk<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bs', '<cmd>Gitsigns stage_buffer<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bs', '<cmd>Gitsigns stage_buffer<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>br', '<cmd>Gitsigns reset_buffer<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>br', '<cmd>Gitsigns reset_buffer<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bl', '<cmd>Gitsigns blame_line<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bl', '<cmd>Gitsigns blame_line<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bt', '<cmd>Gitsigns toggle_current_line_blame<CR>', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bt', '<cmd>Gitsigns toggle_current_line_blame<CR>', {})
end, end,
} }

View file

@ -1,11 +1,11 @@
require('lualine').setup{ require('lualine').setup{
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'auto', theme = 'auto',
}, },
sections = { sections = {
-- lualine_x = {'encoding', 'fileformat', 'filetype'}, -- lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_x = {'aerial', 'filetype'} lualine_x = {'aerial', 'filetype'}
}, },
extensions = {'aerial', 'fugitive', 'fzf', 'nvim-tree', 'toggleterm'} extensions = {'aerial', 'fugitive', 'fzf', 'nvim-tree', 'toggleterm'}
} }

View file

@ -1,14 +1,14 @@
require('nightfox').setup{ require('nightfox').setup{
modules = { modules = {
aerial = true, aerial = true,
cmp = true, cmp = true,
diagnostic = true, diagnostic = true,
fidget = true, fidget = true,
gitgutter = true, gitgutter = true,
hop = true, hop = true,
lsp_trouble = true, lsp_trouble = true,
nvimtree = true, nvimtree = true,
telescope = true, telescope = true,
treesitter = true, treesitter = true,
}, },
} }

View file

@ -1,9 +1,9 @@
vim.g.loaded = 1 vim.g.loaded = 1
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
require('nvim-tree').setup{ require('nvim-tree').setup{
filters = { custom = { "^.git$" } }, filters = { custom = { "^.git$" } },
renderer = { renderer = {
group_empty = true, group_empty = true,
highlight_git = true, highlight_git = true,
}, },
} }

View file

@ -1,7 +1,7 @@
require('sniprun').setup{ require('sniprun').setup{
selected_interpreters = { 'Python3_fifo' }, selected_interpreters = { 'Python3_fifo' },
repl_enable = {'Python3_fifo'}, repl_enable = {'Python3_fifo'},
display = { display = {
"NvimNotify" "NvimNotify"
}, },
} }

View file

@ -5,10 +5,10 @@ local actions = require('telescope.actions')
local trouble = require('trouble.providers.telescope') local trouble = require('trouble.providers.telescope')
require('telescope').setup{ require('telescope').setup{
defaults = { defaults = {
mappings = { mappings = {
i = { ["<c-t>"] = trouble.open_with_trouble }, i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble }, n = { ["<c-t>"] = trouble.open_with_trouble },
},
}, },
},
} }

View file

@ -1,17 +1,17 @@
require('toggleterm').setup{ require('toggleterm').setup{
direction = 'float', direction = 'float',
open_mapping = [[\t]], open_mapping = [[\t]],
size = 20, size = 20,
hide_numbers = true, -- hide the number column in toggleterm buffers hide_numbers = true, -- hide the number column in toggleterm buffers
persist_size = false, persist_size = false,
} }
function _G.set_terminal_keymaps() function _G.set_terminal_keymaps()
local opts = {buffer = 0} local opts = {buffer = 0}
vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts) vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts) vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts) vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts)
vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts) vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts)
end end
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')

View file

@ -13,6 +13,7 @@ require'nvim-treesitter.configs'.setup {
highlight = { highlight = {
enable = true, enable = true,
additional_vim_regex_highlighting = false, additional_vim_regex_highlighting = false,
disable = {'help'},
}, },
} }

View file

@ -1,13 +1,13 @@
local function map(mode, shortcut, command) local function map(mode, shortcut, command)
vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true }) vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true })
end end
local function nmap(shortcut, command) local function nmap(shortcut, command)
map('n', shortcut, command) map('n', shortcut, command)
end end
local function imap(shortcut, command) local function imap(shortcut, command)
map('i', shortcut, command) map('i', shortcut, command)
end end
vim.g.mapleader=' ' vim.g.mapleader=' '

View file

@ -6,117 +6,118 @@ vim.cmd([[
]]) ]])
require('packer').startup(function(use) require('packer').startup(function(use)
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
use 'rcarriga/nvim-notify' use 'rcarriga/nvim-notify'
use 'kyazdani42/nvim-web-devicons' use 'kyazdani42/nvim-web-devicons'
use 'nvim-lua/plenary.nvim' use 'nvim-lua/plenary.nvim'
use 'christoomey/vim-tmux-navigator' use 'christoomey/vim-tmux-navigator'
use 'neovim/nvim-lspconfig' use 'neovim/nvim-lspconfig'
use 'hrsh7th/cmp-nvim-lsp' use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-buffer' use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-path' use 'hrsh7th/cmp-path'
use 'hrsh7th/cmp-cmdline' use 'hrsh7th/cmp-cmdline'
use 'hrsh7th/cmp-nvim-lua' use 'hrsh7th/cmp-nvim-lua'
use 'hrsh7th/nvim-cmp' use 'hrsh7th/nvim-cmp'
use 'hrsh7th/cmp-vsnip' use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/vim-vsnip' use 'hrsh7th/vim-vsnip'
use { use {
'EdenEast/nightfox.nvim', 'EdenEast/nightfox.nvim',
config = function () config = function ()
require 'config_plugins.config_nightfox' require 'config_plugins.config_nightfox'
end end
} }
use { use {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate', run = ':TSUpdate',
config = function () config = function ()
require 'config_plugins.config_treesitter' require 'config_plugins.config_treesitter'
end end
} }
use { use {
'j-hui/fidget.nvim', 'j-hui/fidget.nvim',
config = function () config = function ()
require('fidget').setup() require('fidget').setup()
end end
} }
use { use {
'stevearc/aerial.nvim', 'stevearc/aerial.nvim',
branch = 'nvim-0.5', branch = 'nvim-0.5',
config = function () config = function ()
require 'config_plugins.config_aerial' require 'config_plugins.config_aerial'
end end
} }
use { use {
'tpope/vim-fugitive', 'tpope/vim-fugitive',
opt = true, opt = true,
cmd = {'G', 'Git'} cmd = {'G', 'Git'}
} }
use { use {
'https://github.com/lewis6991/gitsigns.nvim.git', 'https://github.com/lewis6991/gitsigns.nvim.git',
config = function () tag = 'release',
require 'config_plugins.config_gitsigns' config = function ()
end require 'config_plugins.config_gitsigns'
} end
use { }
'nvim-lualine/lualine.nvim', use {
config = function () 'nvim-lualine/lualine.nvim',
require 'config_plugins.config_lualine' config = function ()
end require 'config_plugins.config_lualine'
} end
use { }
'kyazdani42/nvim-tree.lua', use {
opt = true, 'kyazdani42/nvim-tree.lua',
cmd = {'NvimTreeToggle', 'NvimTreeFindFile'}, opt = true,
config = function() cmd = {'NvimTreeToggle', 'NvimTreeFindFile'},
require 'config_plugins.config_nvim-tree' config = function()
end require 'config_plugins.config_nvim-tree'
} end
use { }
'akinsho/toggleterm.nvim', use {
tag = 'v2.*', 'akinsho/toggleterm.nvim',
config = function () tag = 'v2.*',
require 'config_plugins.config_toggleterm' config = function ()
end require 'config_plugins.config_toggleterm'
} end
use { }
'nvim-telescope/telescope.nvim', use {
branch = '0.1.x', 'nvim-telescope/telescope.nvim',
requires = { branch = '0.1.x',
{'nvim-lua/plenary.nvim'} requires = {
}, {'nvim-lua/plenary.nvim'}
config = function () },
require 'config_plugins.config_telescope' config = function ()
end require 'config_plugins.config_telescope'
} end
use { }
'nvim-telescope/telescope-fzf-native.nvim', use {
run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' 'nvim-telescope/telescope-fzf-native.nvim',
} run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build'
use { }
'michaelb/sniprun', use {
run = 'bash install.sh', 'michaelb/sniprun',
opt = true, run = 'bash install.sh',
cmd = {'SnipRun', 'SnipInfo', 'SnipReset'}, opt = true,
config = function () cmd = {'SnipRun', 'SnipInfo', 'SnipReset'},
require 'config_plugins.config_sniprun' config = function ()
end require 'config_plugins.config_sniprun'
} end
use { }
'phaazon/hop.nvim', use {
config = function () 'phaazon/hop.nvim',
require('hop').setup() config = function ()
end require('hop').setup()
} end
use { }
'folke/trouble.nvim', use {
config = function () 'folke/trouble.nvim',
require('trouble').setup() config = function ()
end require('trouble').setup()
} end
use { }
"lukas-reineke/indent-blankline.nvim", use {
config = function () "lukas-reineke/indent-blankline.nvim",
require('indent_blankline').setup() config = function ()
end require('indent_blankline').setup()
} end
}
end) end)