Major changes to nvim config
This commit is contained in:
parent
48c265049b
commit
6d2b03d2f8
4 changed files with 57 additions and 12 deletions
|
@ -3,8 +3,8 @@
|
|||
local fn = vim.fn
|
||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||
vim.cmd 'packadd packer.nvim'
|
||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||
vim.cmd 'packadd packer.nvim'
|
||||
end
|
||||
|
||||
return require('packer').startup(function()
|
||||
|
@ -51,6 +51,13 @@ return require('packer').startup(function()
|
|||
require("lsp").lspconfig()
|
||||
end
|
||||
}
|
||||
use { -- compe
|
||||
"hrsh7th/nvim-cmp",
|
||||
requires = {
|
||||
"hrsh7th/vim-vsnip",
|
||||
"hrsh7th/cmp-buffer",
|
||||
}
|
||||
}
|
||||
use { -- function parameter previews
|
||||
"ray-x/lsp_signature.nvim",
|
||||
after = "nvim-lspconfig",
|
||||
|
@ -64,12 +71,13 @@ return require('packer').startup(function()
|
|||
-- require("other").packer_lazy_load "vim-matchup"
|
||||
-- end,
|
||||
}
|
||||
use {
|
||||
'dense-analysis/ale',
|
||||
config = function()
|
||||
vim.g.ale_disable_lsp = 1
|
||||
end
|
||||
}
|
||||
-- use { -- ALE: Support for lots of linters, etc
|
||||
-- 'dense-analysis/ale',
|
||||
-- config = function()
|
||||
-- vim.g.ale_disable_lsp = 1
|
||||
-- end
|
||||
-- }
|
||||
|
||||
|
||||
---- Other IDE features
|
||||
use { -- git integration
|
||||
|
@ -81,12 +89,23 @@ return require('packer').startup(function()
|
|||
-- require('other').gitsigns()
|
||||
-- end
|
||||
}
|
||||
use { -- file manager
|
||||
'kyazdani42/nvim-tree.lua',
|
||||
requires = 'kyazdani42/nvim-web-devicons',
|
||||
-- use { -- file manager
|
||||
-- 'kyazdani42/nvim-tree.lua',
|
||||
-- requires = 'kyazdani42/nvim-web-devicons',
|
||||
-- config = function()
|
||||
-- require('other').nvimtree()
|
||||
-- end
|
||||
-- }
|
||||
use { -- new file manager
|
||||
'ms-jpq/chadtree',
|
||||
branch = 'chad',
|
||||
run = 'python3 -m chadtree deps',
|
||||
config = function()
|
||||
require('other').nvimtree()
|
||||
require('other').chadtree()
|
||||
end
|
||||
-- config = funciton ()
|
||||
-- vim.cmd 'nnoremap <leader>v <cmd>CHADopen<cr>'
|
||||
-- end
|
||||
}
|
||||
use { -- terminal
|
||||
"akinsho/toggleterm.nvim",
|
||||
|
@ -94,6 +113,17 @@ return require('packer').startup(function()
|
|||
require('other').toggleterm()
|
||||
end
|
||||
}
|
||||
use { -- Smooth Scrolling
|
||||
"karb94/neoscroll.nvim",
|
||||
-- disable = not plugin_status.neoscroll,
|
||||
-- opt = true,
|
||||
-- config = function()
|
||||
-- require("plugins.configs.others").neoscroll()
|
||||
-- end,
|
||||
-- setup = function()
|
||||
-- require("core.utils").packer_lazy_load "neoscroll.nvim"
|
||||
-- end,
|
||||
}
|
||||
|
||||
-- Conveniences
|
||||
use { -- Undo tree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue