lots of refactoring and a new cmp source for clj
This commit is contained in:
parent
d39b721a5c
commit
fffc2e3d46
12 changed files with 164 additions and 159 deletions
18
lua/custom/plugins/autocomp.lua
Normal file
18
lua/custom/plugins/autocomp.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
-- Autocompletion
|
||||
'hrsh7th/nvim-cmp',
|
||||
dependencies = {
|
||||
-- Snippet Engine & its associated nvim-cmp source
|
||||
'L3MON4D3/LuaSnip',
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
|
||||
-- Adds LSP completion capabilities
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
|
||||
-- Adds Conjure cmp
|
||||
'PaterJason/cmp-conjure',
|
||||
|
||||
-- Adds a number of user-friendly snippets
|
||||
'rafamadriz/friendly-snippets',
|
||||
},
|
||||
}
|
||||
10
lua/custom/plugins/blankline.lua
Normal file
10
lua/custom/plugins/blankline.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
-- Add indentation guides even on blank lines
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||
-- See `:help indent_blankline.txt`
|
||||
opts = {
|
||||
char = '┊',
|
||||
show_trailing_blankline_indent = false,
|
||||
},
|
||||
}
|
||||
5
lua/custom/plugins/comment.lua
Normal file
5
lua/custom/plugins/comment.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-- "gc" to comment visual regions/lines
|
||||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
opts = {}
|
||||
}
|
||||
20
lua/custom/plugins/gitsigns.lua
Normal file
20
lua/custom/plugins/gitsigns.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
-- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||
'lewis6991/gitsigns.nvim',
|
||||
opts = {
|
||||
-- See `:help gitsigns.txt`
|
||||
signs = {
|
||||
add = { text = '+' },
|
||||
change = { text = '~' },
|
||||
delete = { text = '_' },
|
||||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
},
|
||||
on_attach = function(bufnr)
|
||||
vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk,
|
||||
{ buffer = bufnr, desc = '[G]o to [P]revious Hunk' })
|
||||
vim.keymap.set('n', '<leader>gn', require('gitsigns').next_hunk, { buffer = bufnr, desc = '[G]o to [N]ext Hunk' })
|
||||
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' })
|
||||
end,
|
||||
},
|
||||
}
|
||||
13
lua/custom/plugins/line.lua
Normal file
13
lua/custom/plugins/line.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
-- Set lualine as statusline
|
||||
'nvim-lualine/lualine.nvim',
|
||||
-- See `:help lualine.txt`
|
||||
opts = {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'everforest',
|
||||
component_separators = '|',
|
||||
section_separators = '',
|
||||
},
|
||||
},
|
||||
}
|
||||
16
lua/custom/plugins/lsp.lua
Normal file
16
lua/custom/plugins/lsp.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
-- LSP Configuration & Plugins
|
||||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
-- Automatically install LSPs to stdpath for neovim
|
||||
{ 'williamboman/mason.nvim', config = true },
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
|
||||
-- Useful status updates for LSP
|
||||
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
||||
{ 'j-hui/fidget.nvim', tag = 'legacy', opts = {} },
|
||||
|
||||
-- Additional lua configuration, makes nvim stuff amazing!
|
||||
'folke/neodev.nvim',
|
||||
},
|
||||
}
|
||||
20
lua/custom/plugins/telescope.lua
Normal file
20
lua/custom/plugins/telescope.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- Fuzzy Finder (files, lsp, etc)
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
branch = '0.1.x',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
|
||||
-- Only load if `make` is available. Make sure you have the system
|
||||
-- requirements installed.
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
-- NOTE: If you are having trouble with this installation,
|
||||
-- refer to the README for telescope-fzf-native for more instructions.
|
||||
build = 'make',
|
||||
cond = function()
|
||||
return vim.fn.executable 'make' == 1
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
8
lua/custom/plugins/theme.lua
Normal file
8
lua/custom/plugins/theme.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
-- Theme inspired by Atom
|
||||
'sainnhe/everforest',
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme 'everforest'
|
||||
end,
|
||||
}
|
||||
10
lua/custom/plugins/tpopeStuff.lua
Normal file
10
lua/custom/plugins/tpopeStuff.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
-- Git related plugins
|
||||
'tpope/vim-fugitive',
|
||||
'tpope/vim-rhubarb',
|
||||
|
||||
-- surround support
|
||||
'tpope/vim-surround',
|
||||
-- Detect tabstop and shiftwidth automatically
|
||||
'tpope/vim-sleuth',
|
||||
}
|
||||
8
lua/custom/plugins/treesit.lua
Normal file
8
lua/custom/plugins/treesit.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
-- Highlight, edit, and navigate code
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
||||
},
|
||||
build = ':TSUpdate',
|
||||
}
|
||||
2
lua/custom/plugins/whichkey.lua
Normal file
2
lua/custom/plugins/whichkey.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- Useful plugin to show you pending keybinds.
|
||||
return { 'folke/which-key.nvim', opts = {} }
|
||||
Loading…
Add table
Add a link
Reference in a new issue