lazyvim
This commit is contained in:
parent
a7a6f01464
commit
33ca9669de
|
@ -0,0 +1,8 @@
|
||||||
|
tt.*
|
||||||
|
.tests
|
||||||
|
doc/tags
|
||||||
|
debug
|
||||||
|
.repro
|
||||||
|
foo.*
|
||||||
|
*.log
|
||||||
|
data
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"neodev": {
|
||||||
|
"library": {
|
||||||
|
"enabled": true,
|
||||||
|
"plugins": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"neoconf": {
|
||||||
|
"plugins": {
|
||||||
|
"lua_ls": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +0,0 @@
|
||||||
let g:netrw_dirhistmax =10
|
|
||||||
let g:netrw_dirhistcnt =6
|
|
||||||
let g:netrw_dirhist_6='/home/markus/.vim'
|
|
||||||
let g:netrw_dirhist_5='/home/markus/dev/typescript/node-pos-erp-mapper/server/components/sap/fi'
|
|
||||||
let g:netrw_dirhist_4='/home/markus/dev/typescript/node-pos-erp-mapper/server/components/sap'
|
|
||||||
let g:netrw_dirhist_3='/home/markus/dev/typescript/node-pos-erp-mapper/server/components'
|
|
||||||
let g:netrw_dirhist_2='/home/markus/dev/typescript/node-pos-erp-mapper/server'
|
|
||||||
let g:netrw_dirhist_1='/home/markus/dev/typescript/node-pos-erp-mapper'
|
|
|
@ -0,0 +1,201 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
|
@ -0,0 +1,4 @@
|
||||||
|
# 💤 LazyVim
|
||||||
|
|
||||||
|
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
|
||||||
|
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
|
|
@ -1,24 +1,2 @@
|
||||||
vim.g.mapleader = " "
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
require('keymap')
|
require("config.lazy")
|
||||||
require('plugins')
|
|
||||||
require('jester_config')
|
|
||||||
require('globals_opts')
|
|
||||||
require('native_commands')
|
|
||||||
require('nvim-lightbulb_config')
|
|
||||||
require('nvimtree')
|
|
||||||
require('treesitter_config')
|
|
||||||
require('dap_config')
|
|
||||||
require('mason_config')
|
|
||||||
require('new_lsp_conf')
|
|
||||||
require('cmp_config')
|
|
||||||
require('toggleterm_config')
|
|
||||||
require('virtual_lines_config')
|
|
||||||
require("null-ls_config")
|
|
||||||
require("telescope_config")
|
|
||||||
require("neotest_config")
|
|
||||||
require("trouble_config")
|
|
||||||
require("symbols_outline")
|
|
||||||
require("luasnip_config")
|
|
||||||
require("brightest_config")
|
|
||||||
require("nvim_autopairs_config")
|
|
||||||
require("vim_illuminate_config")
|
|
||||||
|
|
|
@ -1,141 +0,0 @@
|
||||||
set runtimepath^=/.vim runtimepath+=~/.vim/after
|
|
||||||
let &packpath = &runtimepath
|
|
||||||
"syntax on
|
|
||||||
set modelines=0
|
|
||||||
set hidden
|
|
||||||
set number
|
|
||||||
set ruler
|
|
||||||
set visualbell
|
|
||||||
set textwidth=120
|
|
||||||
set cursorline
|
|
||||||
hi CursorLine term=bold cterm=bold ctermbg=darkgrey
|
|
||||||
set tabstop=2
|
|
||||||
set softtabstop=2
|
|
||||||
set expandtab
|
|
||||||
set shiftwidth=2
|
|
||||||
set matchpairs+=<:>
|
|
||||||
set showmode
|
|
||||||
set showcmd
|
|
||||||
set showmatch
|
|
||||||
set hlsearch
|
|
||||||
set ignorecase
|
|
||||||
set smartcase
|
|
||||||
set incsearch
|
|
||||||
set wrapscan
|
|
||||||
set scrolloff=999
|
|
||||||
set backspace=indent,eol,start
|
|
||||||
set mouse=nicr
|
|
||||||
set termguicolors
|
|
||||||
|
|
||||||
call plug#begin(stdpath('data') . '/plugged')
|
|
||||||
Plug 'williamboman/mason.nvim'
|
|
||||||
Plug 'williamboman/mason-lspconfig.nvim'
|
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
|
||||||
Plug 'junegunn/vim-easy-align'
|
|
||||||
Plug 'morhetz/gruvbox'
|
|
||||||
Plug 'junegunn/fzf', {'do': {->fzf#install()}}
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
Plug 'gfanto/fzf-lsp.nvim'
|
|
||||||
Plug 'nvim-lua/lsp-status.nvim'
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
|
||||||
Plug 'machakann/vim-sandwich'
|
|
||||||
Plug 'machakann/vim-highlightedyank'
|
|
||||||
Plug 'bling/vim-airline'
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
Plug 'rhysd/vim-clang-format'
|
|
||||||
Plug 'easymotion/vim-easymotion'
|
|
||||||
Plug 'neovim/nvim-lspconfig'
|
|
||||||
Plug 'kosayoda/nvim-lightbulb'
|
|
||||||
Plug 'hrsh7th/cmp-nvim-lsp'
|
|
||||||
Plug 'hrsh7th/cmp-buffer'
|
|
||||||
Plug 'hrsh7th/cmp-path'
|
|
||||||
Plug 'hrsh7th/cmp-cmdline'
|
|
||||||
Plug 'hrsh7th/nvim-cmp'
|
|
||||||
Plug 'saadparwaiz1/cmp_luasnip'
|
|
||||||
Plug 'L3MON4D3/LuaSnip'
|
|
||||||
Plug 'kyazdani42/nvim-web-devicons'
|
|
||||||
Plug 'kyazdani42/nvim-tree.lua'
|
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'mfussenegger/nvim-dap'
|
|
||||||
Plug 'David-Kunz/jester'
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
||||||
Plug 'waycrate/swhkd-vim'
|
|
||||||
Plug 'kmonad/kmonad-vim'
|
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
|
||||||
Plug 'akinsho/toggleterm.nvim', {'tag' : 'v2.*'}
|
|
||||||
Plug 'https://git.sr.ht/~whynothugo/lsp_lines.nvim'
|
|
||||||
Plug 'MunifTanjim/nui.nvim'
|
|
||||||
Plug 'arnarg/todotxt.nvim'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
autocmd vimenter * colorscheme gruvbox
|
|
||||||
autocmd BufEnter *.60 :setlocal filetype=sixtyfps
|
|
||||||
let g:clang_format#auto_format=0
|
|
||||||
|
|
||||||
set completeopt=menuone,noselect
|
|
||||||
|
|
||||||
|
|
||||||
highlight NvimTreeFolderIcon guibg=blue
|
|
||||||
|
|
||||||
lua require('cmp_config')
|
|
||||||
lua require('nvimtree')
|
|
||||||
lua require('lsp_conf')
|
|
||||||
lua require('treesitter_config')
|
|
||||||
lua require('dap_config')
|
|
||||||
lua require('jester')
|
|
||||||
lua require('mason_config')
|
|
||||||
lua require('toggleterm_config')
|
|
||||||
lua require('virtual_lines_config')
|
|
||||||
lua require('todotxt_config')
|
|
||||||
|
|
||||||
"Leader
|
|
||||||
nnoremap <SPACE> <Nop>
|
|
||||||
let mapleader=" "
|
|
||||||
"mappings
|
|
||||||
map <leader>h :set cursorline!<CR>
|
|
||||||
"map <leader>c :!yarn copy-start<CR>
|
|
||||||
"map <leader>b :!yarn build<CR>
|
|
||||||
"map <leader>bs :!yarn build-start<CR>
|
|
||||||
|
|
||||||
nnoremap <C-n> :NvimTreeToggle<CR>
|
|
||||||
nnoremap <leader>r :NvimTreeRefresh<CR>
|
|
||||||
nnoremap <leader>n :NvimTreeFindFile<CR>
|
|
||||||
" NvimTreeOpen, NvimTreeClose, NvimTreeFocus, NvimTreeFindFileToggle, and NvimTreeResize are also available if you need them
|
|
||||||
xnoremap p "_dP
|
|
||||||
nnoremap <esc><esc> :noh<return><esc>
|
|
||||||
map <leader>f :FZF<CR>
|
|
||||||
map <leader>F :Rg<CR>
|
|
||||||
|
|
||||||
nnoremap <leader>ca <cmd>lua vim.lsp.buf.code_action()<cr>
|
|
||||||
nnoremap <leader>gd <cmd>lua vim.lsp.buf.definition()<cr>
|
|
||||||
nnoremap <leader>gD <cmd>lua vim.lsp.buf.declaration()<cr>
|
|
||||||
nnoremap <leader>gr <cmd>lua vim.lsp.buf.references()<cr>
|
|
||||||
nnoremap <leader>rn <cmd>lua vim.lsp.buf.rename()<cr>
|
|
||||||
nnoremap <leader>K <cmd>lua vim.lsp.buf.hover()<cr>
|
|
||||||
|
|
||||||
nnoremap <leader>b :Buffers<cr>
|
|
||||||
|
|
||||||
nnoremap <C-L> :bnext<CR>
|
|
||||||
nnoremap <C-H> :bprevious<CR>
|
|
||||||
|
|
||||||
nnoremap <leader>J <cmd>lua vim.diagnostic.open_float()<cr>
|
|
||||||
nnoremap <M-F> <cmd>lua vim.lsp.buf.format({async = true})<cr>
|
|
||||||
inoremap <c-s> <cmd>lua vim.lsp.buf.signature_help()<cr>
|
|
||||||
|
|
||||||
nnoremap <F9> <cmd>lua require'dap'.toggle_breakpoint()<cr>
|
|
||||||
nnoremap <F5> <cmd>lua require'dap'.continue()<cr>
|
|
||||||
nnoremap <F10> <cmd>lua require'dap'.step_over()<cr>
|
|
||||||
nnoremap <F11> <cmd>lua require'dap'.step_into()<cr>
|
|
||||||
|
|
||||||
tnoremap <Esc><Esc> <C-\><C-n>
|
|
||||||
|
|
||||||
nnoremap <leader>td :ToDoTxtTasksToggle<cr>
|
|
||||||
|
|
||||||
autocmd BufWritePre *.ts lua vim.lsp.buf.formatting_sync(nil, 1000)
|
|
||||||
|
|
||||||
command JestRun :lua require'jester'.run({cmd = "npm run test -t '$result' -- $file"})
|
|
||||||
command JestRunFile :lua require'jester'.run_file({cmd = "npm run test -t '$result' -- $file"})
|
|
||||||
command JestRunLast :lua require'jester'.run_last({cmd = "npm run test -t '$result' -- $file"})
|
|
||||||
command JestDebug :lua require'jester'.debug({cmd = "npm run test -t '$result' -- $file"})
|
|
||||||
command JestDebugFile :lua require'jester'.debug_file({cmd = "npm run test -t '$result' -- $file"})
|
|
||||||
command JestDebugLast :lua require'jester'.debug_last({cmd = "npm run test -t '$result' -- $file"})
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"LazyVim": { "branch": "main", "commit": "aa1cccf230a01bd85d5173f7d87f782fd83caa88" },
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "99a94cc35ec99bf06263d0346128e908a204575c" },
|
||||||
|
"alpha-nvim": { "branch": "main", "commit": "e4fc5e29b731bdf55d204c5c6a11dc3be70f3b65" },
|
||||||
|
"bufferline.nvim": { "branch": "main", "commit": "99f0932365b34e22549ff58e1bea388465d15e99" },
|
||||||
|
"catppuccin": { "branch": "main", "commit": "371430f32f2637d2dd5796399b3982d4cada61d8" },
|
||||||
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
||||||
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
|
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
|
||||||
|
"dressing.nvim": { "branch": "master", "commit": "713b56e13c58ad519920e0e634763345cb4fc832" },
|
||||||
|
"flash.nvim": { "branch": "main", "commit": "967117690bd677cb7b6a87f0bc0077d2c0be3a27" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "bc38057e513458cb2486b6cd82d365fa294ee398" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "287fffb410ce82d19da2d503a1f1570adf7b7874" },
|
||||||
|
"indent-blankline.nvim": { "branch": "master", "commit": "4541d690816cb99a7fc248f1486aa87f3abce91c" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
|
||||||
|
"lsp_lines.nvim": { "branch": "main", "commit": "f53af96d4789eef39a082dbcce078d2bfc384ece" },
|
||||||
|
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "e86a4c84ff35240639643ffed56ee1c4d55f538e" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "fe9e34a9ab4d64321cdc3ecab4ea1809239bb73f" },
|
||||||
|
"mini.ai": { "branch": "main", "commit": "5218ea75e635df78a807bc9d5a7162594fb76d02" },
|
||||||
|
"mini.bufremove": { "branch": "main", "commit": "7821606e35c1ac931b56d8e3155f45ffe76ee7e5" },
|
||||||
|
"mini.comment": { "branch": "main", "commit": "877acea5b2a32ff55f808fc0ebe9aa898648318c" },
|
||||||
|
"mini.indentscope": { "branch": "main", "commit": "f60e9b51a6214c73a170ffc5445ce91560981031" },
|
||||||
|
"mini.pairs": { "branch": "main", "commit": "dfa9f6e2576bb8853be277d96b735af59d9be7c2" },
|
||||||
|
"mini.surround": { "branch": "main", "commit": "9d1956b576d7051da3a483b251dfc778121c60db" },
|
||||||
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "7951701fd21291ac473ea92d3fd57ec5c8bf10bb" },
|
||||||
|
"neoconf.nvim": { "branch": "main", "commit": "08f146d53e075055500dca35e93281faff95716b" },
|
||||||
|
"neodev.nvim": { "branch": "main", "commit": "9f0205a08757711f57589a1dffa8abf525f4a23b" },
|
||||||
|
"noice.nvim": { "branch": "main", "commit": "894db25ec726d32047799d4d0a982b701bec453b" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "9e3916e784660f55f47daa6f26053ad044db5d6a" },
|
||||||
|
"null-ls.nvim": { "branch": "main", "commit": "db09b6c691def0038c456551e4e2772186449f35" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "c4e491a87eeacf0408902c32f031d802c7eafce8" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "4b1a764c10c6c8679615fcb4f1e8b0f5513d900b" },
|
||||||
|
"nvim-navic": { "branch": "master", "commit": "9c89730da6a05acfeb6a197e212dfadf5aa60ca0" },
|
||||||
|
"nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
|
||||||
|
"nvim-spectre": { "branch": "master", "commit": "5b39919a2947b1266b3aa34d0b0b14c35523bc69" },
|
||||||
|
"nvim-treesitter": { "branch": "master", "commit": "ae88851cac32415c8239a04b7ee44d8f7625e186" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "9e519b6146512c8e2e702faf8ac48420f4f5deec" },
|
||||||
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "e9062e2dfb9854e6a927370f2d720de354c88524" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "eb8f80f30fd5e9a6176dee5c46661ebd7437ac46" },
|
||||||
|
"persistence.nvim": { "branch": "main", "commit": "4b8051c01f696d8849a5cb8afa9767be8db16e40" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" },
|
||||||
|
"telescope.nvim": { "branch": "master", "commit": "dc192faceb2db64231ead71539761e055df66d73" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "3094ead8edfa9040de2421deddec55d3762f64d1" },
|
||||||
|
"toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" },
|
||||||
|
"tokyonight.nvim": { "branch": "main", "commit": "1ee11019f8a81dac989ae1db1a013e3d582e2033" },
|
||||||
|
"trouble.nvim": { "branch": "main", "commit": "40aad004f53ae1d1ba91bcc5c29d59f07c5f01d3" },
|
||||||
|
"vim-illuminate": { "branch": "master", "commit": "5ed17582a8e97bf0a0c617c3cf762e98f87b9859" },
|
||||||
|
"vim-startuptime": { "branch": "master", "commit": "454b3de856b7bd298700de33d79774ca9b9e3875" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }
|
||||||
|
}
|
|
@ -1,9 +0,0 @@
|
||||||
vim.g['brightest#highlight'] = { group = 'BrightestUnderline' }
|
|
||||||
vim.g['brightest_enable'] = 0
|
|
||||||
vim.g['brightest#enable_filetypes'] = {
|
|
||||||
_ = 1,
|
|
||||||
vim = 0,
|
|
||||||
NvimTree = 0,
|
|
||||||
TelescopePrompt = 0,
|
|
||||||
Trouble = 0,
|
|
||||||
}
|
|
|
@ -1,82 +0,0 @@
|
||||||
local cmp = require("cmp")
|
|
||||||
local luasnip = require("luasnip")
|
|
||||||
|
|
||||||
local has_words_before = function()
|
|
||||||
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
|
||||||
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
|
||||||
end
|
|
||||||
cmp.setup({
|
|
||||||
-- snippet = {
|
|
||||||
-- expand = function(args)
|
|
||||||
-- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
mapping = {
|
|
||||||
['<C-k>'] = cmp.mapping.select_prev_item(),
|
|
||||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
|
||||||
['<C-j>'] = cmp.mapping.select_next_item(),
|
|
||||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
|
||||||
['<C-d>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
|
|
||||||
['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
|
|
||||||
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
|
|
||||||
['<C-y>'] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
|
|
||||||
['<C-e>'] = cmp.mapping({
|
|
||||||
i = cmp.mapping.abort(),
|
|
||||||
c = cmp.mapping.close(),
|
|
||||||
}),
|
|
||||||
['<CR>'] = cmp.mapping.confirm({ select = true }),
|
|
||||||
['<Tab>'] = cmp.mapping(function(fallback)
|
|
||||||
if cmp.visible() then
|
|
||||||
cmp.select_next_item()
|
|
||||||
elseif luasnip.expand_or_jumpable() then
|
|
||||||
luasnip.expand_or_jump()
|
|
||||||
elseif has_words_before() then
|
|
||||||
cmp.complete()
|
|
||||||
else
|
|
||||||
fallback()
|
|
||||||
end
|
|
||||||
end, { "i", "s" }),
|
|
||||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
|
||||||
if cmp.visible() then
|
|
||||||
cmp.select_prev_item()
|
|
||||||
elseif luasnip.jumpable(-1) then
|
|
||||||
luasnip.jump(-1)
|
|
||||||
else
|
|
||||||
fallback()
|
|
||||||
end
|
|
||||||
end, { "i", "s" })
|
|
||||||
},
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = 'nvim_lsp' },
|
|
||||||
{ name = 'nvim_lsp_signature_help' },
|
|
||||||
{ name = 'buffer' },
|
|
||||||
-- { name = 'path' },
|
|
||||||
}),
|
|
||||||
window = {
|
|
||||||
completion = cmp.config.window.bordered(),
|
|
||||||
documentation = cmp.config.window.bordered(),
|
|
||||||
},
|
|
||||||
formatting = {
|
|
||||||
fields = { 'menu', 'abbr', 'kind' },
|
|
||||||
format = function(entry, item)
|
|
||||||
local menu_icon = {
|
|
||||||
nvim_lsp = 'λ',
|
|
||||||
buffer = 'Ω'
|
|
||||||
}
|
|
||||||
item.menu = menu_icon[entry.source.name]
|
|
||||||
return item
|
|
||||||
end
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
cmp.setup.cmdline('/', {
|
|
||||||
sources = {
|
|
||||||
{ name = 'buffer' }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
cmp.setup.cmdline(':', {
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = 'path' }
|
|
||||||
}, { { name = 'cmdline' } })
|
|
||||||
})
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Autocmds are automatically loaded on the VeryLazy event
|
||||||
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||||
|
-- Add any additional autocmds here
|
||||||
|
local function open_nvim_tree(data)
|
||||||
|
local directory = vim.fn.isdirectory(data.file) == 1
|
||||||
|
if not directory then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.cmd.cd(data.file)
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
|
|
@ -0,0 +1,20 @@
|
||||||
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
|
-- Add any additional keymaps here
|
||||||
|
|
||||||
|
local function map(mode, lhs, rhs, opts)
|
||||||
|
local keys = require("lazy.core.handler").handlers.keys
|
||||||
|
---@cast keys LazyKeysHandler
|
||||||
|
-- do not create the keymap if a lazy keys handler exists
|
||||||
|
if not keys.active[keys.parse({ lhs, mode = mode }).id] then
|
||||||
|
opts = opts or {}
|
||||||
|
opts.silent = opts.silent ~= false
|
||||||
|
if opts.remap and not vim.g.vscode then
|
||||||
|
opts.remap = nil
|
||||||
|
end
|
||||||
|
vim.keymap.set(mode, lhs, rhs, opts)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
map("t", "<Esc><Esc>", [[<C-\><C-n>]], {})
|
||||||
|
map("", "tl", require("lsp_lines").toggle, { desc = "Toggle lsp_lines" })
|
|
@ -0,0 +1,46 @@
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
-- bootstrap lazy.nvim
|
||||||
|
-- stylua: ignore
|
||||||
|
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- add LazyVim and import its plugins
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
|
-- import any extras modules here
|
||||||
|
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
|
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||||
|
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||||
|
-- import/override with your plugins
|
||||||
|
{ import = "plugins" },
|
||||||
|
},
|
||||||
|
defaults = {
|
||||||
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||||
|
lazy = false,
|
||||||
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
|
-- have outdated releases, which may break your Neovim install.
|
||||||
|
version = false, -- always use the latest git commit
|
||||||
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
|
},
|
||||||
|
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
|
checker = { enabled = true }, -- automatically check for plugin updates
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
-- disable some rtp plugins
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
-- "matchit",
|
||||||
|
-- "matchparen",
|
||||||
|
-- "netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
|
@ -0,0 +1,9 @@
|
||||||
|
-- Options are automatically loaded before lazy.nvim startup
|
||||||
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
|
-- Add any additional options here
|
||||||
|
--
|
||||||
|
|
||||||
|
local opt = vim.opt
|
||||||
|
local diag = vim.diagnostic
|
||||||
|
opt.scrolloff = 999
|
||||||
|
diag.config({ virtual_text = false })
|
|
@ -1,85 +0,0 @@
|
||||||
vim.fn.sign_define('DapBreakpoint', { text = '🟥', texthl = '', linehl = '', numhl = '' })
|
|
||||||
vim.fn.sign_define('DapStopped', { text = '⭐️', texthl = '', linehl = '', numhl = '' })
|
|
||||||
local dap = require('dap')
|
|
||||||
local dapui = require("dapui")
|
|
||||||
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
--local DEBUGGER_PATH = {os.getenv('HOME')..'/.local/share/nvim/mason/packages/js-debug-adapter'}
|
|
||||||
local DEBUGGER_PATH = vim.fn.stdpath "data" .. "/site/pack/packer/opt/vscode-js-debug"
|
|
||||||
|
|
||||||
function M.setup()
|
|
||||||
dap.adapters.lldb = {
|
|
||||||
type = 'executable',
|
|
||||||
command = '/usr/bin/lldb-vscode',
|
|
||||||
name = 'lldb'
|
|
||||||
}
|
|
||||||
|
|
||||||
dap.configurations.cpp = {
|
|
||||||
{
|
|
||||||
name = 'Launch',
|
|
||||||
type = 'lldb',
|
|
||||||
request = 'launch',
|
|
||||||
program = function()
|
|
||||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
|
||||||
end,
|
|
||||||
cwd = '${workspaceFolder}',
|
|
||||||
stopOnEntry = false,
|
|
||||||
args = {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dap.configurations.c = dap.configurations.cpp
|
|
||||||
dap.configurations.rust = dap.configurations.cpp
|
|
||||||
require('dap-vscode-js').setup {
|
|
||||||
node_path = "node",
|
|
||||||
debugger_path = DEBUGGER_PATH,
|
|
||||||
adapters = { "pwa-node", "pwa-chrome", "pwa-msedge", "node-terminal", "pwa-extensionHost" }
|
|
||||||
}
|
|
||||||
for _, language in ipairs { "typescript", "javascript" } do
|
|
||||||
dap.configurations[language] = { {
|
|
||||||
type = "pwa-node",
|
|
||||||
request = "launch",
|
|
||||||
name = "Launch File",
|
|
||||||
program = "${file}",
|
|
||||||
cwd = "${workspaceFolder}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type = "pwa-node",
|
|
||||||
request = "attach",
|
|
||||||
name = "Attach",
|
|
||||||
processId = require("dap.utils").pick_process,
|
|
||||||
cwd = "${workspaceFolder}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type = "pwa-node",
|
|
||||||
request = "launch",
|
|
||||||
name = "Debug Jest Tests",
|
|
||||||
runtimeExecutable = "node",
|
|
||||||
runtimeArgs = {
|
|
||||||
"./node_modules/jest/bin/jest.js",
|
|
||||||
"--runInBand",
|
|
||||||
},
|
|
||||||
rootPath = "${workspaceFolder}",
|
|
||||||
console = "integratedTerminal",
|
|
||||||
internalConsoleOptions = "neverOpen",
|
|
||||||
cwd = "${workspaceFolder}"
|
|
||||||
} }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
require("dapui").setup()
|
|
||||||
|
|
||||||
M.setup()
|
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
|
||||||
print('dap event init')
|
|
||||||
dapui.open()
|
|
||||||
end
|
|
||||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
|
||||||
print('dap event terminate')
|
|
||||||
dapui.close()
|
|
||||||
end
|
|
||||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
|
||||||
print('dap event exit')
|
|
||||||
dapui.close()
|
|
||||||
end
|
|
||||||
return M
|
|
|
@ -1,51 +0,0 @@
|
||||||
|
|
||||||
local dap = require('dap')
|
|
||||||
|
|
||||||
local function debugJest(testName, filename)
|
|
||||||
print("starting " .. testName .. " in " .. filename)
|
|
||||||
dap.run({
|
|
||||||
type = 'node',
|
|
||||||
request = 'launch',
|
|
||||||
cwd = vim.fn.getcwd(),
|
|
||||||
runtimeArgs = {'--inspect-brk', '/usr/local/bin/jest', '--no-coverage', '-t', testName, '--', filename},
|
|
||||||
sourceMaps = true,
|
|
||||||
protocol = 'inspector',
|
|
||||||
skipFiles = {'<node_internals>/**/*.js'},
|
|
||||||
console = 'integratedTerminal',
|
|
||||||
port = 9229,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local function attach()
|
|
||||||
print("attaching")
|
|
||||||
dap.run({
|
|
||||||
type = 'node',
|
|
||||||
request = 'attach',
|
|
||||||
cwd = vim.fn.getcwd(),
|
|
||||||
sourceMaps = true,
|
|
||||||
protocol = 'inspector',
|
|
||||||
skipFiles = {'<node_internals>/**/*.js'},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local function attachToRemote()
|
|
||||||
print("attaching")
|
|
||||||
dap.run({
|
|
||||||
type = 'node',
|
|
||||||
request = 'attach',
|
|
||||||
address = "127.0.0.1",
|
|
||||||
port = 9229,
|
|
||||||
localRoot = vim.fn.getcwd(),
|
|
||||||
remoteRoot = "/home/vcap/app",
|
|
||||||
sourceMaps = true,
|
|
||||||
protocol = 'inspector',
|
|
||||||
skipFiles = {'<node_internals>/**/*.js'},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
debugJest = debugJest,
|
|
||||||
attach = attach,
|
|
||||||
attachToRemote = attachToRemote,
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
local set = vim.opt
|
|
||||||
set.title = true
|
|
||||||
set.modelines = 0
|
|
||||||
set.hidden = true
|
|
||||||
set.number = true
|
|
||||||
set.ruler = true
|
|
||||||
set.visualbell = true
|
|
||||||
set.textwidth = 120
|
|
||||||
set.cursorline = true
|
|
||||||
set.tabstop = 2
|
|
||||||
set.shiftwidth = 2
|
|
||||||
set.showmode = true
|
|
||||||
set.showcmd = true
|
|
||||||
set.showmatch = true
|
|
||||||
set.hlsearch = true
|
|
||||||
set.ignorecase = true
|
|
||||||
set.smartcase = true
|
|
||||||
set.incsearch = true
|
|
||||||
set.wrapscan = true
|
|
||||||
set.scrolloff = 999
|
|
||||||
set.backspace = "indent,eol,start"
|
|
||||||
set.mouse = "nicr"
|
|
||||||
set.termguicolors = true
|
|
||||||
set.matchpairs:append("<:>")
|
|
||||||
set.completeopt = "menuone,noselect,preview"
|
|
||||||
set.expandtab = true
|
|
||||||
set.relativenumber = true
|
|
|
@ -1,22 +0,0 @@
|
||||||
require'jester'.setup({
|
|
||||||
cmd = "yarn run test -t '$result' -- $file", -- run command
|
|
||||||
identifiers = {"test", "it"}, -- used to identify tests
|
|
||||||
prepend = {"describe"}, -- prepend describe blocks
|
|
||||||
expressions = {"call_expression"}, -- tree-sitter object used to scan for tests/describe blocks
|
|
||||||
path_to_jest_run = './node_modules/jest/bin/jest', -- used to run tests
|
|
||||||
path_to_jest_debug = './node_modules/jest/bin/jest', -- used for debugging
|
|
||||||
terminal_cmd = ":vsplit | terminal", -- used to spawn a terminal for running tests, for debugging refer to nvim-dap's config
|
|
||||||
dap = { -- debug adapter configuration
|
|
||||||
type = 'pwa-node',
|
|
||||||
request = 'launch',
|
|
||||||
cwd = vim.fn.getcwd(),
|
|
||||||
runtimeArgs = {'--inspect-brk', '$path_to_jest', '--no-coverage', '-t', '$result', '--', '$file'},
|
|
||||||
args = { '--no-cache' },
|
|
||||||
sourceMaps = 'inline',
|
|
||||||
protocol = 'inspector',
|
|
||||||
skipFiles = {'<node_internals>/**/*.js'},
|
|
||||||
console = 'integratedTerminal',
|
|
||||||
port = 9229,
|
|
||||||
disableOptimisticBPs = true
|
|
||||||
}
|
|
||||||
})
|
|
|
@ -1,58 +0,0 @@
|
||||||
function map(mode, shortcut, command)
|
|
||||||
vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true })
|
|
||||||
end
|
|
||||||
|
|
||||||
function nmap(shortcut, command)
|
|
||||||
map('n', shortcut, command)
|
|
||||||
end
|
|
||||||
|
|
||||||
function imap(shortcut, command)
|
|
||||||
map('i', shortcut, command)
|
|
||||||
end
|
|
||||||
|
|
||||||
function vmap(shortcut, command)
|
|
||||||
map('v', shortcut, command)
|
|
||||||
end
|
|
||||||
|
|
||||||
function xmap(shortcut, command)
|
|
||||||
map('x', shortcut, command)
|
|
||||||
end
|
|
||||||
|
|
||||||
nmap("<SPACE>", "<Nop>")
|
|
||||||
nmap("<Esc><Esc>", ":noh<cr>")
|
|
||||||
|
|
||||||
|
|
||||||
nmap("<C-f>", ":ToggleTerm direction=float<cr>")
|
|
||||||
imap("<C-f>", ":ToggleTerm direction=float<cr>")
|
|
||||||
|
|
||||||
nmap("<C-l>", ":ToggleTerm direction=horizontal size=10<cr>")
|
|
||||||
imap("<C-l>", ":ToggleTerm direction=horizontal size=10<cr>")
|
|
||||||
|
|
||||||
xmap("p", '\"_dP')
|
|
||||||
nmap("<leader>fg", "<cmd>lua require('telescope.builtin').live_grep()<cr>")
|
|
||||||
nmap("<leader>fb", "<cmd>lua require('telescope.builtin').buffers()<cr>")
|
|
||||||
nmap("<leader>fh", "<cmd>lua require('telescope.builtin').help_tags()<cr>")
|
|
||||||
nmap("<leader>ff", "<cmd>lua require('telescope.builtin').find_files()<cr>")
|
|
||||||
nmap("<leader>vb", "<cmd>lua require('telescope.builtin').git_branches()<cr>")
|
|
||||||
|
|
||||||
nmap("<leader>b", "<cmd>lua require('telescope.builtin').buffers()<cr>")
|
|
||||||
nmap("<C-n>", ":NvimTreeToggle<cr>")
|
|
||||||
nmap("<leader>r", ":NvimTreeRefresh<cr>")
|
|
||||||
nmap("<leader>n", ":NvimTreeToggle<cr>")
|
|
||||||
|
|
||||||
nmap("<leader>zn", "zf%")
|
|
||||||
nmap("<leader>y", '\"+y')
|
|
||||||
vmap("<leader>y", '\"+y')
|
|
||||||
|
|
||||||
nmap("<F5>", ":lua require'dap'.continue()<CR>")
|
|
||||||
nmap("<F10>", ":lua require'dap'.step_over()<CR>")
|
|
||||||
nmap("<F11>", ":lua require'dap'.step_into()<CR>")
|
|
||||||
nmap("<F12>", ":lua require'dap'.step_out()<CR>")
|
|
||||||
nmap("<leader>B", ":lua require'dap'.toggle_breakpoint()<CR>")
|
|
||||||
nmap("<leader>Bc", ":lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>")
|
|
||||||
nmap("<leader>lp", ":lua require'dap'.set_breakpoint(nil,nil,vim.fn.input('Log point message: '))<CR>")
|
|
||||||
nmap("<leader>lR", ":lua require'dap'.repl.open()<CR>")
|
|
||||||
nmap("<leader>dK", ":lua require'dap.ui.widgets'.hover()<CR>")
|
|
||||||
nmap("<leader>dh", ":lua require'dap.ui.variables'.visual_hover()<CR>")
|
|
||||||
nmap("<leader>d?", ":lua require'dap.ui.variables'.scopes()<CR>")
|
|
||||||
nmap("<leader>da", ":lua require'debugHelper'.attach()<CR>")
|
|
|
@ -1 +0,0 @@
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
|
|
@ -1,23 +0,0 @@
|
||||||
require('mason').setup({
|
|
||||||
ui = {
|
|
||||||
icons = {
|
|
||||||
package_installed = "✓",
|
|
||||||
package_pending = "➜",
|
|
||||||
package_uninstalled = "✗"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
require('mason-lspconfig').setup({})
|
|
||||||
|
|
||||||
require 'mason-tool-installer'.setup {
|
|
||||||
ensure_installed = {
|
|
||||||
{ 'bash-language-server', auto_update = true },
|
|
||||||
'lua-language-server',
|
|
||||||
'vim-language-server',
|
|
||||||
--'typescript-language-server',
|
|
||||||
'stylua',
|
|
||||||
},
|
|
||||||
auto_update = false,
|
|
||||||
run_on_start = true,
|
|
||||||
start_delay = 3000
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
vim.cmd('hi CursorLine term=bold cterm=bold ctermbg=darkgrey')
|
|
||||||
|
|
||||||
vim.cmd.colorscheme "catppuccin"
|
|
||||||
vim.o.background = "light"
|
|
||||||
vim.o.termguicolors = true
|
|
|
@ -1,19 +0,0 @@
|
||||||
require("neotest").setup({
|
|
||||||
adapters = {
|
|
||||||
require("neotest-jest")({
|
|
||||||
jestCommand = "npm test --",
|
|
||||||
jestConfigFile = "custom.jest.config.ts",
|
|
||||||
env = { CI = true },
|
|
||||||
cwd = function(path)
|
|
||||||
return vim.fn.getcwd()
|
|
||||||
end,
|
|
||||||
}),
|
|
||||||
require("neotest-python")({
|
|
||||||
dap = { justMyCode = false },
|
|
||||||
}),
|
|
||||||
require("neotest-plenary"),
|
|
||||||
-- require("neotest-vim-test")({
|
|
||||||
-- ignore_file_types = { "python", "vim", "lua" },
|
|
||||||
-- }),
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1,161 +0,0 @@
|
||||||
-- Mappings.
|
|
||||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
|
||||||
local opts = { noremap = true, silent = true }
|
|
||||||
local goErrorOpts = { severity = vim.diagnostic.severity.ERROR, noremap = true, silent = true }
|
|
||||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
|
|
||||||
vim.keymap.set('n', 'gE', ':lua vim.diagnostic.goto_prev({severity = vim.diagnostic.severity.ERROR})<cr>', opts)
|
|
||||||
vim.keymap.set('n', 'ge', ':lua vim.diagnostic.goto_next({severity = vim.diagnostic.severity.ERROR})<cr>', opts)
|
|
||||||
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
|
|
||||||
|
|
||||||
-- Use an on_attach function to only map the following keys
|
|
||||||
-- after the language server attaches to the current buffer
|
|
||||||
local on_attach = function(client, bufnr)
|
|
||||||
-- Enable completion triggered by <c-x><c-o>
|
|
||||||
--vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
|
||||||
|
|
||||||
-- Mappings.
|
|
||||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
|
||||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
|
||||||
vim.keymap.set('n', '<leader>gD', vim.lsp.buf.declaration, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>gd', vim.lsp.buf.definition, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>K', vim.lsp.buf.hover, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>gi', vim.lsp.buf.implementation, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>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>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>wl', function()
|
|
||||||
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
|
||||||
end, 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>ca', vim.lsp.buf.code_action, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>gr', vim.lsp.buf.references, bufopts)
|
|
||||||
vim.keymap.set('n', '<leader>f', vim.lsp.buf.format, bufopts)
|
|
||||||
|
|
||||||
if vim.bo[bufnr].buftype ~= "" or vim.bo[bufnr].filetype == "helm" then
|
|
||||||
vim.diagnostic.disable()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local lsp_flags = {
|
|
||||||
-- This is the default in Nvim 0.7+
|
|
||||||
debounce_text_changes = 250,
|
|
||||||
}
|
|
||||||
|
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities(
|
|
||||||
vim.lsp.protocol.make_client_capabilities()
|
|
||||||
)
|
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|
||||||
|
|
||||||
require('mason-lspconfig').setup_handlers {
|
|
||||||
function(server_name)
|
|
||||||
require('lspconfig')[server_name].setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
capabilities = capabilities
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
['rust_analyzer'] = function()
|
|
||||||
local rustToolsOpts = {
|
|
||||||
tools = {
|
|
||||||
inlay_hints = {
|
|
||||||
auto = true,
|
|
||||||
only_current_line = true,
|
|
||||||
show_parameter_hints = false,
|
|
||||||
parameter_hints_prefix = "<-",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
server = {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
flags = lsp_flags,
|
|
||||||
settings = {
|
|
||||||
["rust_analyzer"] = {
|
|
||||||
checkOnSave = {
|
|
||||||
command = "clippy"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
require('rust-tools').setup(rustToolsOpts)
|
|
||||||
--on_attach = on_attach,
|
|
||||||
--flags = lsp_flags,
|
|
||||||
require('lspconfig')['rust_analyzer'].setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
-- server-specific settings...
|
|
||||||
settings = {
|
|
||||||
["rust-analyzer"] = {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
['html'] = function()
|
|
||||||
require('lspconfig')['html'].setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
cmd = { "vscode-html-language-server", "--stdio" },
|
|
||||||
filetypes = { "html" },
|
|
||||||
init_options = {
|
|
||||||
configurationSection = { "html", "css", "javascript" },
|
|
||||||
embeddedLanguages = {
|
|
||||||
css = true,
|
|
||||||
javascript = true
|
|
||||||
},
|
|
||||||
provideFormatter = true
|
|
||||||
},
|
|
||||||
settings = {}
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
['vtsls'] = function()
|
|
||||||
require('lspconfig')['vtsls'].setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
-- ['tsserver'] = function()
|
|
||||||
--
|
|
||||||
-- require('lspconfig')['tsserver'].setup {
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- flags = lsp_flags,
|
|
||||||
-- settings = {
|
|
||||||
-- init_options = {
|
|
||||||
-- host_info = 'neovim'
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- end,
|
|
||||||
['yamlls'] = function()
|
|
||||||
require('lspconfig')["yamlls"].setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = lsp_flags,
|
|
||||||
settings = {
|
|
||||||
yaml = {
|
|
||||||
schemas = { kubernetes = "globPattern" },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
-- ['sumneko_lua'] = function()
|
|
||||||
-- require('lspconfig')["sumneko_lua"].setup {
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- flags = lsp_flags,
|
|
||||||
-- settings = {
|
|
||||||
-- Lua = {
|
|
||||||
-- diagnostics = {
|
|
||||||
-- globals = { "vim" }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- end,
|
|
||||||
}
|
|
||||||
--require('lspconfig')['rust_analyzer'].setup {
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- flags = lsp_flags,
|
|
||||||
-- -- Server-specific settings...
|
|
||||||
-- settings = {
|
|
||||||
-- ["rust-analyzer"] = {}
|
|
||||||
-- }
|
|
||||||
--}
|
|
||||||
require "fidget".setup {}
|
|
|
@ -1,10 +0,0 @@
|
||||||
require("null-ls").setup({
|
|
||||||
sources = {
|
|
||||||
|
|
||||||
--require("null-ls").builtins.formatting.stylua,
|
|
||||||
|
|
||||||
-- require("null-ls").builtins.diagnostics.eslint,
|
|
||||||
-- require("null-ls").builtins.completion.spell,
|
|
||||||
require("null-ls").builtins.formatting.xmllint
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1 +0,0 @@
|
||||||
require('nvim-lightbulb').setup({ autocmd = { enabled = true } })
|
|
|
@ -1,26 +0,0 @@
|
||||||
require('nvim-autopairs').setup({
|
|
||||||
disable_filetype = { "TelescopePrompt", "vim", "spectre_panel" },
|
|
||||||
disable_in_macro = true, -- disable when recording or executing a macro
|
|
||||||
disable_in_visualblock = false, -- disable when insert after visual block mode
|
|
||||||
disable_in_replace_mode = true,
|
|
||||||
ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
|
|
||||||
enable_moveright = true,
|
|
||||||
enable_afterquote = true, -- add bracket pairs after quote
|
|
||||||
enable_check_bracket_line = true, --- check bracket in same line
|
|
||||||
enable_bracket_in_quote = true, --
|
|
||||||
enable_abbr = false, -- trigger abbreviation
|
|
||||||
break_undo = true, -- switch for basic rule break undo sequence
|
|
||||||
check_ts = false,
|
|
||||||
map_cr = true,
|
|
||||||
map_bs = true, -- map the <BS> key
|
|
||||||
map_c_h = false, -- Map the <C-h> key to delete a pair
|
|
||||||
map_c_w = false -- map <c-w> to delete a pair if possible
|
|
||||||
})
|
|
||||||
|
|
||||||
-- If you want insert `(` after select function or method item
|
|
||||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
|
||||||
local cmp = require('cmp')
|
|
||||||
cmp.event:on(
|
|
||||||
'confirm_done',
|
|
||||||
cmp_autopairs.on_confirm_done()
|
|
||||||
)
|
|
|
@ -1,123 +0,0 @@
|
||||||
require 'nvim-tree'.setup {
|
|
||||||
renderer = {
|
|
||||||
icons = {
|
|
||||||
padding = ' ',
|
|
||||||
symlink_arrow = ' >> ',
|
|
||||||
show = {
|
|
||||||
git = true,
|
|
||||||
folder = true,
|
|
||||||
file = true,
|
|
||||||
folder_arrow = false
|
|
||||||
},
|
|
||||||
glyphs = {
|
|
||||||
default = "",
|
|
||||||
symlink = "",
|
|
||||||
git = {
|
|
||||||
unstaged = "✗",
|
|
||||||
staged = "✓",
|
|
||||||
unmerged = "",
|
|
||||||
renamed = "➜",
|
|
||||||
untracked = "★",
|
|
||||||
deleted = "",
|
|
||||||
ignored = "◌"
|
|
||||||
},
|
|
||||||
folder = {
|
|
||||||
arrow_open = "",
|
|
||||||
arrow_closed = "",
|
|
||||||
default = "",
|
|
||||||
open = "",
|
|
||||||
empty = "",
|
|
||||||
empty_open = "",
|
|
||||||
symlink = "",
|
|
||||||
symlink_open = "",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
add_trailing = true,
|
|
||||||
highlight_opened_files = "all",
|
|
||||||
root_folder_modifier = ':~',
|
|
||||||
special_files = {
|
|
||||||
'README.md',
|
|
||||||
'Makefile',
|
|
||||||
'MAKEFILE'
|
|
||||||
},
|
|
||||||
highlight_git = true,
|
|
||||||
indent_markers = {
|
|
||||||
enable = true,
|
|
||||||
icons = {
|
|
||||||
corner = "└",
|
|
||||||
edge = "│ ",
|
|
||||||
none = " ",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
respect_buf_cwd = true,
|
|
||||||
disable_netrw = true,
|
|
||||||
hijack_netrw = true,
|
|
||||||
open_on_tab = false,
|
|
||||||
hijack_cursor = true,
|
|
||||||
auto_reload_on_write = true,
|
|
||||||
hijack_unnamed_buffer_when_opening = true,
|
|
||||||
sync_root_with_cwd = true,
|
|
||||||
diagnostics = {
|
|
||||||
enable = true,
|
|
||||||
icons = {
|
|
||||||
hint = "",
|
|
||||||
info = "",
|
|
||||||
warning = "",
|
|
||||||
error = "",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
update_focused_file = {
|
|
||||||
enable = true,
|
|
||||||
update_cwd = true,
|
|
||||||
ignore_list = {}
|
|
||||||
},
|
|
||||||
system_open = {
|
|
||||||
cmd = nil,
|
|
||||||
args = {}
|
|
||||||
},
|
|
||||||
filters = {
|
|
||||||
dotfiles = false,
|
|
||||||
custom = {}
|
|
||||||
},
|
|
||||||
git = {
|
|
||||||
ignore = false,
|
|
||||||
enable = true,
|
|
||||||
timeout = 500,
|
|
||||||
},
|
|
||||||
actions = {
|
|
||||||
open_file = {
|
|
||||||
resize_window = true,
|
|
||||||
window_picker = {
|
|
||||||
exclude = {
|
|
||||||
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" },
|
|
||||||
buftype = { "nofile", "terminal", "help" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
view = {
|
|
||||||
width = 35,
|
|
||||||
hide_root_folder = false,
|
|
||||||
side = 'right',
|
|
||||||
mappings = {
|
|
||||||
custom_only = false,
|
|
||||||
list = {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
local function open_nvim_tree(data)
|
|
||||||
local directory = vim.fn.isdirectory(data.file) == 1
|
|
||||||
if not directory then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.cmd.enew()
|
|
||||||
vim.cmd.bw(data.buf)
|
|
||||||
|
|
||||||
vim.cmd.cd(data.file)
|
|
||||||
require('nvim-tree.api').tree.open()
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ 'VimEnter' }, { callback = open_nvim_tree })
|
|
|
@ -1,124 +0,0 @@
|
||||||
require("packer").startup(function(use)
|
|
||||||
use("wbthomason/packer.nvim")
|
|
||||||
use({
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
|
||||||
})
|
|
||||||
use { "mfussenegger/nvim-dap",
|
|
||||||
requires = {
|
|
||||||
"theHamsta/nvim-dap-virtual-text",
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
"mfussenegger/nvim-dap-python",
|
|
||||||
"nvim-telescope/telescope-dap.nvim",
|
|
||||||
{ "jbyuki/one-small-step-for-vimkind", module = "osv" },
|
|
||||||
"mxsdev/nvim-dap-vscode-js",
|
|
||||||
{
|
|
||||||
"microsoft/vscode-js-debug",
|
|
||||||
opt = true,
|
|
||||||
run = "npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
use("jose-elias-alvarez/null-ls.nvim")
|
|
||||||
use({
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
tag = "0.1.x",
|
|
||||||
requires = { { "nvim-lua/plenary.nvim" } },
|
|
||||||
})
|
|
||||||
use("nvim-lua/lsp-status.nvim")
|
|
||||||
-- use("jiangmiao/auto-pairs")
|
|
||||||
use {
|
|
||||||
"windwp/nvim-autopairs"
|
|
||||||
-- config = function() require("nvim-autopairs").setup {} end
|
|
||||||
}
|
|
||||||
use("machakann/vim-highlightedyank")
|
|
||||||
use("bling/vim-airline")
|
|
||||||
use("airblade/vim-gitgutter")
|
|
||||||
use("easymotion/vim-easymotion")
|
|
||||||
use({
|
|
||||||
"antoinemadec/FixCursorHold.nvim",
|
|
||||||
"kosayoda/nvim-lightbulb",
|
|
||||||
})
|
|
||||||
use("hrsh7th/cmp-nvim-lsp")
|
|
||||||
use("hrsh7th/cmp-nvim-lsp-signature-help")
|
|
||||||
use("hrsh7th/cmp-nvim-lua")
|
|
||||||
use("hrsh7th/cmp-buffer")
|
|
||||||
use("hrsh7th/cmp-path")
|
|
||||||
use("hrsh7th/cmp-vsnip")
|
|
||||||
use("hrsh7th/vim-vsnip")
|
|
||||||
use("hrsh7th/nvim-cmp")
|
|
||||||
use("hrsh7th/cmp-cmdline")
|
|
||||||
use("saadparwaiz1/cmp_luasnip")
|
|
||||||
use("L3MON4D3/LuaSnip")
|
|
||||||
use("rafamadriz/friendly-snippets")
|
|
||||||
use("kyazdani42/nvim-web-devicons")
|
|
||||||
use("kyazdani42/nvim-tree.lua")
|
|
||||||
use("tpope/vim-fugitive")
|
|
||||||
use("shumphrey/fugitive-gitlab.vim")
|
|
||||||
use({
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
run = function()
|
|
||||||
require("nvim-treesitter.install").update({ with_sync = true })
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
use("ayu-theme/ayu-vim")
|
|
||||||
use("morhetz/gruvbox")
|
|
||||||
use("simrat39/rust-tools.nvim")
|
|
||||||
use({
|
|
||||||
"akinsho/toggleterm.nvim",
|
|
||||||
tag = "v2.*",
|
|
||||||
config = function()
|
|
||||||
require("toggleterm").setup()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
use("https://git.sr.ht/~whynothugo/lsp_lines.nvim")
|
|
||||||
--use 'morhetz/gruvbox'
|
|
||||||
use({
|
|
||||||
"folke/which-key.nvim",
|
|
||||||
config = function()
|
|
||||||
require("which-key").setup({})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
use("gbrlsnchs/telescope-lsp-handlers.nvim")
|
|
||||||
use({
|
|
||||||
"nvim-neotest/neotest",
|
|
||||||
requires = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
"antoinemadec/FixCursorHold.nvim",
|
|
||||||
"haydenmeade/neotest-jest",
|
|
||||||
"nvim-neotest/neotest-python",
|
|
||||||
"nvim-neotest/neotest-plenary",
|
|
||||||
"nvim-neotest/neotest-vim-test",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
use({
|
|
||||||
"MunifTanjim/prettier.nvim",
|
|
||||||
requires = {
|
|
||||||
"jose-elias-alvarez/null-ls.nvim",
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
use {
|
|
||||||
"folke/trouble.nvim",
|
|
||||||
requires = "kyazdani42/nvim-web-devicons"
|
|
||||||
}
|
|
||||||
use 'simrat39/symbols-outline.nvim'
|
|
||||||
use { 'j-hui/fidget.nvim', version = 'legacy' }
|
|
||||||
use { 'shuntaka9576/preview-swagger.nvim' }
|
|
||||||
use 'towolf/vim-helm'
|
|
||||||
use { 'catppuccin/nvim', as = "catppuccin" }
|
|
||||||
use 'gpanders/editorconfig.nvim'
|
|
||||||
use 'RRethy/vim-illuminate'
|
|
||||||
use 'David-Kunz/jester'
|
|
||||||
use { 'kylechui/nvim-surround',
|
|
||||||
tag = "*",
|
|
||||||
config = function()
|
|
||||||
require('nvim-surround').setup({
|
|
||||||
|
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end)
|
|
|
@ -0,0 +1,266 @@
|
||||||
|
-- since this is just an example spec, don't actually load anything here and return an empty spec
|
||||||
|
-- stylua: ignore
|
||||||
|
if true then return {} end
|
||||||
|
|
||||||
|
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
|
||||||
|
--
|
||||||
|
-- In your plugin files, you can:
|
||||||
|
-- * add extra plugins
|
||||||
|
-- * disable/enabled LazyVim plugins
|
||||||
|
-- * override the configuration of LazyVim plugins
|
||||||
|
return {
|
||||||
|
-- add gruvbox
|
||||||
|
{ "ellisonleao/gruvbox.nvim" },
|
||||||
|
|
||||||
|
-- Configure LazyVim to load gruvbox
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "gruvbox",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- change trouble config
|
||||||
|
{
|
||||||
|
"folke/trouble.nvim",
|
||||||
|
-- opts will be merged with the parent spec
|
||||||
|
opts = { use_diagnostic_signs = true },
|
||||||
|
},
|
||||||
|
|
||||||
|
-- disable trouble
|
||||||
|
{ "folke/trouble.nvim", enabled = false },
|
||||||
|
|
||||||
|
-- add symbols-outline
|
||||||
|
{
|
||||||
|
"simrat39/symbols-outline.nvim",
|
||||||
|
cmd = "SymbolsOutline",
|
||||||
|
keys = { { "<leader>cs", "<cmd>SymbolsOutline<cr>", desc = "Symbols Outline" } },
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- override nvim-cmp and add cmp-emoji
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = { "hrsh7th/cmp-emoji" },
|
||||||
|
---@param opts cmp.ConfigSchema
|
||||||
|
opts = function(_, opts)
|
||||||
|
local cmp = require("cmp")
|
||||||
|
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } }))
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- change some telescope options and a keymap to browse plugin files
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
keys = {
|
||||||
|
-- add a keymap to browse plugin files
|
||||||
|
-- stylua: ignore
|
||||||
|
{
|
||||||
|
"<leader>fp",
|
||||||
|
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end,
|
||||||
|
desc = "Find Plugin File",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- change some options
|
||||||
|
opts = {
|
||||||
|
defaults = {
|
||||||
|
layout_strategy = "horizontal",
|
||||||
|
layout_config = { prompt_position = "top" },
|
||||||
|
sorting_strategy = "ascending",
|
||||||
|
winblend = 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- add telescope-fzf-native
|
||||||
|
{
|
||||||
|
"telescope.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-telescope/telescope-fzf-native.nvim",
|
||||||
|
build = "make",
|
||||||
|
config = function()
|
||||||
|
require("telescope").load_extension("fzf")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- add pyright to lspconfig
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
---@class PluginLspOpts
|
||||||
|
opts = {
|
||||||
|
---@type lspconfig.options
|
||||||
|
servers = {
|
||||||
|
-- pyright will be automatically installed with mason and loaded with lspconfig
|
||||||
|
pyright = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- add tsserver and setup with typescript.nvim instead of lspconfig
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
"jose-elias-alvarez/typescript.nvim",
|
||||||
|
init = function()
|
||||||
|
require("lazyvim.util").on_attach(function(_, buffer)
|
||||||
|
-- stylua: ignore
|
||||||
|
vim.keymap.set( "n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" })
|
||||||
|
vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
---@class PluginLspOpts
|
||||||
|
opts = {
|
||||||
|
---@type lspconfig.options
|
||||||
|
servers = {
|
||||||
|
-- tsserver will be automatically installed with mason and loaded with lspconfig
|
||||||
|
tsserver = {},
|
||||||
|
},
|
||||||
|
-- you can do any additional lsp server setup here
|
||||||
|
-- return true if you don't want this server to be setup with lspconfig
|
||||||
|
---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
|
||||||
|
setup = {
|
||||||
|
-- example to setup with typescript.nvim
|
||||||
|
tsserver = function(_, opts)
|
||||||
|
require("typescript").setup({ server = opts })
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
-- Specify * to use this function as a fallback for any server
|
||||||
|
-- ["*"] = function(server, opts) end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- for typescript, LazyVim also includes extra specs to properly setup lspconfig,
|
||||||
|
-- treesitter, mason and typescript.nvim. So instead of the above, you can use:
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
|
|
||||||
|
-- add more treesitter parsers
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = {
|
||||||
|
"bash",
|
||||||
|
"html",
|
||||||
|
"javascript",
|
||||||
|
"json",
|
||||||
|
"lua",
|
||||||
|
"markdown",
|
||||||
|
"markdown_inline",
|
||||||
|
"python",
|
||||||
|
"query",
|
||||||
|
"regex",
|
||||||
|
"tsx",
|
||||||
|
"typescript",
|
||||||
|
"vim",
|
||||||
|
"yaml",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
|
||||||
|
-- would overwrite `ensure_installed` with the new value.
|
||||||
|
-- If you'd rather extend the default config, use the code below instead:
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = function(_, opts)
|
||||||
|
-- add tsx and treesitter
|
||||||
|
vim.list_extend(opts.ensure_installed, {
|
||||||
|
"tsx",
|
||||||
|
"typescript",
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- the opts function can also be used to change the default opts:
|
||||||
|
{
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = function(_, opts)
|
||||||
|
table.insert(opts.sections.lualine_x, "😄")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- or you can return new options to override all the defaults
|
||||||
|
{
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = function()
|
||||||
|
return {
|
||||||
|
--[[add your custom lualine config here]]
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- use mini.starter instead of alpha
|
||||||
|
{ import = "lazyvim.plugins.extras.ui.mini-starter" },
|
||||||
|
|
||||||
|
-- add jsonls and schemastore packages, and setup treesitter for json, json5 and jsonc
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||||
|
|
||||||
|
-- add any tools you want to have installed below
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = {
|
||||||
|
"stylua",
|
||||||
|
"shellcheck",
|
||||||
|
"shfmt",
|
||||||
|
"flake8",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Use <tab> for completion and snippets (supertab)
|
||||||
|
-- first: disable default <tab> and <s-tab> behavior in LuaSnip
|
||||||
|
{
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
keys = function()
|
||||||
|
return {}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
-- then: setup supertab in cmp
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = {
|
||||||
|
"hrsh7th/cmp-emoji",
|
||||||
|
},
|
||||||
|
---@param opts cmp.ConfigSchema
|
||||||
|
opts = function(_, opts)
|
||||||
|
local has_words_before = function()
|
||||||
|
unpack = unpack or table.unpack
|
||||||
|
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||||
|
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local luasnip = require("luasnip")
|
||||||
|
local cmp = require("cmp")
|
||||||
|
|
||||||
|
opts.mapping = vim.tbl_extend("force", opts.mapping, {
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_next_item()
|
||||||
|
-- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable()
|
||||||
|
-- this way you will only jump inside the snippet region
|
||||||
|
elseif luasnip.expand_or_jumpable() then
|
||||||
|
luasnip.expand_or_jump()
|
||||||
|
elseif has_words_before() then
|
||||||
|
cmp.complete()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_prev_item()
|
||||||
|
elseif luasnip.jumpable(-1) then
|
||||||
|
luasnip.jump(-1)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
return {
|
||||||
|
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||||
|
config = true,
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = "all",
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"akinsho/toggleterm.nvim",
|
||||||
|
version = "*",
|
||||||
|
opts = {
|
||||||
|
open_mapping = [[<c-y>]],
|
||||||
|
hide_numbers = true,
|
||||||
|
direction = "float",
|
||||||
|
float_opts = {
|
||||||
|
border = "curved",
|
||||||
|
},
|
||||||
|
winbar = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,62 +0,0 @@
|
||||||
local opts = {
|
|
||||||
highlight_hovered_item = true,
|
|
||||||
show_guides = true,
|
|
||||||
auto_preview = false,
|
|
||||||
position = 'right',
|
|
||||||
relative_width = true,
|
|
||||||
width = 25,
|
|
||||||
auto_close = false,
|
|
||||||
show_numbers = false,
|
|
||||||
show_relative_numbers = false,
|
|
||||||
show_symbol_details = true,
|
|
||||||
preview_bg_highlight = 'Pmenu',
|
|
||||||
autofold_depth = nil,
|
|
||||||
auto_unfold_hover = true,
|
|
||||||
fold_markers = { '', '' },
|
|
||||||
wrap = false,
|
|
||||||
keymaps = { -- These keymaps can be a string or a table for multiple keys
|
|
||||||
close = {"<Esc>", "q"},
|
|
||||||
goto_location = "<Cr>",
|
|
||||||
focus_location = "o",
|
|
||||||
hover_symbol = "<C-space>",
|
|
||||||
toggle_preview = "K",
|
|
||||||
rename_symbol = "r",
|
|
||||||
code_actions = "a",
|
|
||||||
fold = "h",
|
|
||||||
unfold = "l",
|
|
||||||
fold_all = "W",
|
|
||||||
unfold_all = "E",
|
|
||||||
fold_reset = "R",
|
|
||||||
},
|
|
||||||
lsp_blacklist = {},
|
|
||||||
symbol_blacklist = {},
|
|
||||||
symbols = {
|
|
||||||
File = {icon = "", hl = "TSURI"},
|
|
||||||
Module = {icon = "", hl = "TSNamespace"},
|
|
||||||
Namespace = {icon = "", hl = "TSNamespace"},
|
|
||||||
Package = {icon = "", hl = "TSNamespace"},
|
|
||||||
Class = {icon = "𝓒", hl = "TSType"},
|
|
||||||
Method = {icon = "ƒ", hl = "TSMethod"},
|
|
||||||
Property = {icon = "", hl = "TSMethod"},
|
|
||||||
Field = {icon = "", hl = "TSField"},
|
|
||||||
Constructor = {icon = "", hl = "TSConstructor"},
|
|
||||||
Enum = {icon = "ℰ", hl = "TSType"},
|
|
||||||
Interface = {icon = "ﰮ", hl = "TSType"},
|
|
||||||
Function = {icon = "", hl = "TSFunction"},
|
|
||||||
Variable = {icon = "", hl = "TSConstant"},
|
|
||||||
Constant = {icon = "", hl = "TSConstant"},
|
|
||||||
String = {icon = "𝓐", hl = "TSString"},
|
|
||||||
Number = {icon = "#", hl = "TSNumber"},
|
|
||||||
Boolean = {icon = "⊨", hl = "TSBoolean"},
|
|
||||||
Array = {icon = "", hl = "TSConstant"},
|
|
||||||
Object = {icon = "⦿", hl = "TSType"},
|
|
||||||
Key = {icon = "🔐", hl = "TSType"},
|
|
||||||
Null = {icon = "NULL", hl = "TSType"},
|
|
||||||
EnumMember = {icon = "", hl = "TSField"},
|
|
||||||
Struct = {icon = "𝓢", hl = "TSType"},
|
|
||||||
Event = {icon = "🗲", hl = "TSType"},
|
|
||||||
Operator = {icon = "+", hl = "TSOperator"},
|
|
||||||
TypeParameter = {icon = "𝙏", hl = "TSParameter"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
require("symbols-outline").setup(opts)
|
|
|
@ -1,49 +0,0 @@
|
||||||
require('telescope').load_extension('lsp_handlers')
|
|
||||||
local trouble = require('trouble.providers.telescope')
|
|
||||||
require('telescope').setup({
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
n = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
},
|
|
||||||
path_display = { "smart" },
|
|
||||||
},
|
|
||||||
pickers = {
|
|
||||||
live_grep = {
|
|
||||||
results_title = false,
|
|
||||||
layout_strategy = 'vertical',
|
|
||||||
dynamic_preview_title = true,
|
|
||||||
sorting_strategy = 'ascending',
|
|
||||||
additional_args = { '--trim' },
|
|
||||||
layout_config = {
|
|
||||||
prompt_position = 'top',
|
|
||||||
width = 0.95,
|
|
||||||
height = 0.95,
|
|
||||||
mirror = true,
|
|
||||||
--flex = {
|
|
||||||
-- flip_columns = 100,
|
|
||||||
-- flip_lines = 10,
|
|
||||||
-- vertical = {
|
|
||||||
-- mirror = false,
|
|
||||||
-- },
|
|
||||||
-- horizontal = {
|
|
||||||
-- mirror = false
|
|
||||||
-- },
|
|
||||||
--},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
find_files = {
|
|
||||||
theme = "dropdown",
|
|
||||||
layout_config = {
|
|
||||||
horizontal = { width = 0.5 }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
extensions = {
|
|
||||||
lsp_handlers = {
|
|
||||||
code_action = {
|
|
||||||
telescope = require('telescope.themes').get_dropdown({}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1,8 +0,0 @@
|
||||||
require('todotxt-nvim').setup({
|
|
||||||
todo_file = '~/todotxt/todo.txt',
|
|
||||||
sidebar = {
|
|
||||||
width = 40,
|
|
||||||
position = 'right'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
|
@ -1,12 +0,0 @@
|
||||||
vim.api.nvim_set_keymap('t', "<Esc><Esc>", [[<C-\><C-n>]], {})
|
|
||||||
require "toggleterm".setup {
|
|
||||||
open_mapping = [[<c-y>]],
|
|
||||||
hide_numbers = true,
|
|
||||||
--direction = 'float',
|
|
||||||
float_opts = {
|
|
||||||
border = 'curved'
|
|
||||||
},
|
|
||||||
winbar = {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
|
|
||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
|
|
||||||
ensure_installed = "all",
|
|
||||||
|
|
||||||
-- Install languages synchronously (only applied to `ensure_installed`)
|
|
||||||
sync_install = false,
|
|
||||||
|
|
||||||
-- List of parsers to ignore installing
|
|
||||||
ignore_install = { },
|
|
||||||
|
|
||||||
highlight = {
|
|
||||||
-- `false` will disable the whole extension
|
|
||||||
enable = true,
|
|
||||||
|
|
||||||
-- list of language that will be disabled
|
|
||||||
disable = { },
|
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
--- Treesitter
|
|
||||||
---BEGINWORKAROUND
|
|
||||||
--vim.api.nvim_create_autocmd({'BufEnter','BufAdd','BufNew','BufNewFile','BufWinEnter'}, {
|
|
||||||
-- group = vim.api.nvim_create_augroup('TS_FOLD_WORKAROUND', {}),
|
|
||||||
-- callback = function()
|
|
||||||
-- vim.opt.foldmethod = 'expr'
|
|
||||||
-- vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
|
||||||
-- end
|
|
||||||
--})
|
|
||||||
---ENDWORKAROUND
|
|
||||||
--- Treesitter
|
|
||||||
--- Utility functions
|
|
||||||
---
|
|
|
@ -1,74 +0,0 @@
|
||||||
require('trouble').setup {
|
|
||||||
position = "bottom", -- position of the list can be: bottom, top, left, right
|
|
||||||
height = 10, -- height of the trouble list when position is top or bottom
|
|
||||||
width = 50, -- width of the list when position is left or right
|
|
||||||
icons = true, -- use devicons for filenames
|
|
||||||
mode = "workspace_diagnostics", -- "workspace_diagnostics", "document_diagnostics", "quickfix", "lsp_references", "loclist"
|
|
||||||
fold_open = "", -- icon used for open folds
|
|
||||||
fold_closed = "", -- icon used for closed folds
|
|
||||||
group = true, -- group results by file
|
|
||||||
padding = true, -- add an extra new line on top of the list
|
|
||||||
action_keys = { -- key mappings for actions in the trouble list
|
|
||||||
-- map to {} to remove a mapping, for example:
|
|
||||||
-- close = {},
|
|
||||||
close = "q", -- close the list
|
|
||||||
cancel = "<esc>", -- cancel the preview and get back to your last window / buffer / cursor
|
|
||||||
refresh = "r", -- manually refresh
|
|
||||||
jump = { "<cr>", "<tab>" }, -- jump to the diagnostic or open / close folds
|
|
||||||
open_split = { "<c-x>" }, -- open buffer in new split
|
|
||||||
open_vsplit = { "<c-v>" }, -- open buffer in new vsplit
|
|
||||||
open_tab = { "<c-t>" }, -- open buffer in new tab
|
|
||||||
jump_close = { "o" }, -- jump to the diagnostic and close the list
|
|
||||||
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
|
|
||||||
toggle_preview = "P", -- toggle auto_preview
|
|
||||||
hover = "K", -- opens a small popup with the full multiline message
|
|
||||||
preview = "p", -- preview the diagnostic location
|
|
||||||
close_folds = { "zM", "zm" }, -- close all folds
|
|
||||||
open_folds = { "zR", "zr" }, -- open all folds
|
|
||||||
toggle_fold = { "zA", "za" }, -- toggle fold of current file
|
|
||||||
previous = "k", -- previous item
|
|
||||||
next = "j" -- next item
|
|
||||||
},
|
|
||||||
indent_lines = true, -- add an indent guide below the fold icons
|
|
||||||
auto_open = false, -- automatically open the list when you have diagnostics
|
|
||||||
auto_close = false, -- automatically close the list when you have no diagnostics
|
|
||||||
auto_preview = true, -- automatically preview the location of the diagnostic. <esc> to close preview and go back to last window
|
|
||||||
auto_fold = false, -- automatically fold a file trouble list at creation
|
|
||||||
auto_jump = { "lsp_definitions" }, -- for the given modes, automatically jump if there is only a single result
|
|
||||||
signs = {
|
|
||||||
-- icons / text used for a diagnostic
|
|
||||||
error = "",
|
|
||||||
warning = "",
|
|
||||||
hint = "",
|
|
||||||
information = "",
|
|
||||||
other = ""
|
|
||||||
},
|
|
||||||
use_diagnostic_signs = false -- enabling this will use the signs defined in your lsp client
|
|
||||||
}
|
|
||||||
vim.keymap.set("n", "<leader>t", "<cmd>TroubleToggle<cr>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
vim.keymap.set("n", "<leader>tw", "<cmd>TroubleToggle workspace_diagnostics<cr>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
vim.keymap.set("n", "<leader>td", "<cmd>TroubleToggle document_diagnostics<cr>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
vim.keymap.set("n", "<leader>tl", "<cmd>TroubleToggle loclist<cr>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
vim.keymap.set("n", "<leader>tq", "<cmd>TroubleToggle quickfix<cr>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
|
|
||||||
local trouble = require("trouble.providers.telescope")
|
|
||||||
local telescope = require("telescope")
|
|
||||||
|
|
||||||
telescope.setup {
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
n = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,49 +0,0 @@
|
||||||
-- default configuration
|
|
||||||
require('illuminate').configure({
|
|
||||||
-- providers: provider used to get references in the buffer, ordered by priority
|
|
||||||
providers = {
|
|
||||||
'treesitter',
|
|
||||||
'regex',
|
|
||||||
},
|
|
||||||
-- delay: delay in milliseconds
|
|
||||||
delay = 100,
|
|
||||||
-- filetype_overrides: filetype specific overrides.
|
|
||||||
-- The keys are strings to represent the filetype while the values are tables that
|
|
||||||
-- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist
|
|
||||||
filetype_overrides = { },
|
|
||||||
-- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist
|
|
||||||
filetypes_denylist = {
|
|
||||||
'dirvish',
|
|
||||||
'fugitive',
|
|
||||||
'NvimTree',
|
|
||||||
'TelescopePrompt',
|
|
||||||
'Trouble'
|
|
||||||
},
|
|
||||||
-- filetypes_allowlist: filetypes to illuminate, this is overriden by filetypes_denylist
|
|
||||||
filetypes_allowlist = {},
|
|
||||||
-- modes_denylist: modes to not illuminate, this overrides modes_allowlist
|
|
||||||
-- See `:help mode()` for possible values
|
|
||||||
modes_denylist = {},
|
|
||||||
-- modes_allowlist: modes to illuminate, this is overriden by modes_denylist
|
|
||||||
-- See `:help mode()` for possible values
|
|
||||||
modes_allowlist = {},
|
|
||||||
-- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist
|
|
||||||
-- Only applies to the 'regex' provider
|
|
||||||
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
|
||||||
providers_regex_syntax_denylist = {},
|
|
||||||
-- providers_regex_syntax_allowlist: syntax to illuminate, this is overriden by providers_regex_syntax_denylist
|
|
||||||
-- Only applies to the 'regex' provider
|
|
||||||
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
|
||||||
providers_regex_syntax_allowlist = {},
|
|
||||||
-- under_cursor: whether or not to illuminate under the cursor
|
|
||||||
under_cursor = true,
|
|
||||||
-- large_file_cutoff: number of lines at which to use large_file_config
|
|
||||||
-- The `under_cursor` option is disabled when this cutoff is hit
|
|
||||||
large_file_cutoff = 1000,
|
|
||||||
-- large_file_config: config to use for large files (based on large_file_cutoff).
|
|
||||||
-- Supports the same keys passed to .configure
|
|
||||||
-- If nil, vim-illuminate will be disabled for large files.
|
|
||||||
large_file_overrides = nil,
|
|
||||||
-- min_count_to_highlight: minimum number of matches required to perform highlighting
|
|
||||||
min_count_to_highlight = 1,
|
|
||||||
})
|
|
|
@ -1,9 +0,0 @@
|
||||||
lines = require('lsp_lines')
|
|
||||||
lines.setup()
|
|
||||||
vim.diagnostic.config({ virtual_text = false });
|
|
||||||
vim.keymap.set(
|
|
||||||
"",
|
|
||||||
"tl",
|
|
||||||
lines.toggle,
|
|
||||||
{ desc = "Toggle lsp_lines" }
|
|
||||||
);
|
|
|
@ -1,450 +0,0 @@
|
||||||
-- Automatically generated packer.nvim plugin loader code
|
|
||||||
|
|
||||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
|
||||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_command('packadd packer.nvim')
|
|
||||||
|
|
||||||
local no_errors, error_msg = pcall(function()
|
|
||||||
|
|
||||||
_G._packer = _G._packer or {}
|
|
||||||
_G._packer.inside_compile = true
|
|
||||||
|
|
||||||
local time
|
|
||||||
local profile_info
|
|
||||||
local should_profile = false
|
|
||||||
if should_profile then
|
|
||||||
local hrtime = vim.loop.hrtime
|
|
||||||
profile_info = {}
|
|
||||||
time = function(chunk, start)
|
|
||||||
if start then
|
|
||||||
profile_info[chunk] = hrtime()
|
|
||||||
else
|
|
||||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
|
||||||
time = function(chunk, start) end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function save_profiles(threshold)
|
|
||||||
local sorted_times = {}
|
|
||||||
for chunk_name, time_taken in pairs(profile_info) do
|
|
||||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
|
||||||
end
|
|
||||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
|
||||||
local results = {}
|
|
||||||
for i, elem in ipairs(sorted_times) do
|
|
||||||
if not threshold or threshold and elem[2] > threshold then
|
|
||||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if threshold then
|
|
||||||
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
|
||||||
end
|
|
||||||
|
|
||||||
_G._packer.profile_output = results
|
|
||||||
end
|
|
||||||
|
|
||||||
time([[Luarocks path setup]], true)
|
|
||||||
local package_path_str = "/home/markus/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/markus/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/markus/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/markus/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
|
||||||
local install_cpath_pattern = "/home/markus/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
|
||||||
if not string.find(package.path, package_path_str, 1, true) then
|
|
||||||
package.path = package.path .. ';' .. package_path_str
|
|
||||||
end
|
|
||||||
|
|
||||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
|
||||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
|
||||||
end
|
|
||||||
|
|
||||||
time([[Luarocks path setup]], false)
|
|
||||||
time([[try_loadstring definition]], true)
|
|
||||||
local function try_loadstring(s, component, name)
|
|
||||||
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
|
||||||
if not success then
|
|
||||||
vim.schedule(function()
|
|
||||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
return result
|
|
||||||
end
|
|
||||||
|
|
||||||
time([[try_loadstring definition]], false)
|
|
||||||
time([[Defining packer_plugins]], true)
|
|
||||||
_G.packer_plugins = {
|
|
||||||
["FixCursorHold.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim",
|
|
||||||
url = "https://github.com/antoinemadec/FixCursorHold.nvim"
|
|
||||||
},
|
|
||||||
LuaSnip = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
|
||||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
|
||||||
},
|
|
||||||
["auto-pairs"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/auto-pairs",
|
|
||||||
url = "https://github.com/jiangmiao/auto-pairs"
|
|
||||||
},
|
|
||||||
["ayu-vim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/ayu-vim",
|
|
||||||
url = "https://github.com/ayu-theme/ayu-vim"
|
|
||||||
},
|
|
||||||
catppuccin = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/catppuccin",
|
|
||||||
url = "https://github.com/catppuccin/nvim"
|
|
||||||
},
|
|
||||||
["cmp-buffer"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
|
||||||
},
|
|
||||||
["cmp-cmdline"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-cmdline"
|
|
||||||
},
|
|
||||||
["cmp-nvim-lsp"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
|
||||||
},
|
|
||||||
["cmp-nvim-lsp-signature-help"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"
|
|
||||||
},
|
|
||||||
["cmp-nvim-lua"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-nvim-lua"
|
|
||||||
},
|
|
||||||
["cmp-path"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-path",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-path"
|
|
||||||
},
|
|
||||||
["cmp-vsnip"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp-vsnip",
|
|
||||||
url = "https://github.com/hrsh7th/cmp-vsnip"
|
|
||||||
},
|
|
||||||
cmp_luasnip = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
|
|
||||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
|
||||||
},
|
|
||||||
["editorconfig.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/editorconfig.nvim",
|
|
||||||
url = "https://github.com/gpanders/editorconfig.nvim"
|
|
||||||
},
|
|
||||||
["fidget.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/fidget.nvim",
|
|
||||||
url = "https://github.com/j-hui/fidget.nvim"
|
|
||||||
},
|
|
||||||
["friendly-snippets"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/friendly-snippets",
|
|
||||||
url = "https://github.com/rafamadriz/friendly-snippets"
|
|
||||||
},
|
|
||||||
["fugitive-gitlab.vim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/fugitive-gitlab.vim",
|
|
||||||
url = "https://github.com/shumphrey/fugitive-gitlab.vim"
|
|
||||||
},
|
|
||||||
gruvbox = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/gruvbox",
|
|
||||||
url = "https://github.com/morhetz/gruvbox"
|
|
||||||
},
|
|
||||||
["lsp-status.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/lsp-status.nvim",
|
|
||||||
url = "https://github.com/nvim-lua/lsp-status.nvim"
|
|
||||||
},
|
|
||||||
["lsp_lines.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/lsp_lines.nvim",
|
|
||||||
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim"
|
|
||||||
},
|
|
||||||
["mason-lspconfig.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
|
|
||||||
url = "https://github.com/williamboman/mason-lspconfig.nvim"
|
|
||||||
},
|
|
||||||
["mason-tool-installer.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/mason-tool-installer.nvim",
|
|
||||||
url = "https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim"
|
|
||||||
},
|
|
||||||
["mason.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/mason.nvim",
|
|
||||||
url = "https://github.com/williamboman/mason.nvim"
|
|
||||||
},
|
|
||||||
neotest = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/neotest",
|
|
||||||
url = "https://github.com/nvim-neotest/neotest"
|
|
||||||
},
|
|
||||||
["neotest-jest"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/neotest-jest",
|
|
||||||
url = "https://github.com/haydenmeade/neotest-jest"
|
|
||||||
},
|
|
||||||
["neotest-plenary"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/neotest-plenary",
|
|
||||||
url = "https://github.com/nvim-neotest/neotest-plenary"
|
|
||||||
},
|
|
||||||
["neotest-python"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/neotest-python",
|
|
||||||
url = "https://github.com/nvim-neotest/neotest-python"
|
|
||||||
},
|
|
||||||
["neotest-vim-test"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/neotest-vim-test",
|
|
||||||
url = "https://github.com/nvim-neotest/neotest-vim-test"
|
|
||||||
},
|
|
||||||
["null-ls.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
|
|
||||||
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
|
||||||
},
|
|
||||||
["nvim-cmp"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
|
||||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
|
||||||
},
|
|
||||||
["nvim-dap"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
|
||||||
url = "https://github.com/mfussenegger/nvim-dap"
|
|
||||||
},
|
|
||||||
["nvim-dap-python"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-dap-python",
|
|
||||||
url = "https://github.com/mfussenegger/nvim-dap-python"
|
|
||||||
},
|
|
||||||
["nvim-dap-ui"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-dap-ui",
|
|
||||||
url = "https://github.com/rcarriga/nvim-dap-ui"
|
|
||||||
},
|
|
||||||
["nvim-dap-virtual-text"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-dap-virtual-text",
|
|
||||||
url = "https://github.com/theHamsta/nvim-dap-virtual-text"
|
|
||||||
},
|
|
||||||
["nvim-dap-vscode-js"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-dap-vscode-js",
|
|
||||||
url = "https://github.com/mxsdev/nvim-dap-vscode-js"
|
|
||||||
},
|
|
||||||
["nvim-lightbulb"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-lightbulb",
|
|
||||||
url = "https://github.com/kosayoda/nvim-lightbulb"
|
|
||||||
},
|
|
||||||
["nvim-lspconfig"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
|
||||||
url = "https://github.com/neovim/nvim-lspconfig"
|
|
||||||
},
|
|
||||||
["nvim-surround"] = {
|
|
||||||
config = { "\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18nvim-surround\frequire\0" },
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-surround",
|
|
||||||
url = "https://github.com/kylechui/nvim-surround"
|
|
||||||
},
|
|
||||||
["nvim-tree.lua"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
|
|
||||||
url = "https://github.com/kyazdani42/nvim-tree.lua"
|
|
||||||
},
|
|
||||||
["nvim-treesitter"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
|
||||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
|
||||||
},
|
|
||||||
["nvim-web-devicons"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
|
||||||
url = "https://github.com/kyazdani42/nvim-web-devicons"
|
|
||||||
},
|
|
||||||
["one-small-step-for-vimkind"] = {
|
|
||||||
loaded = false,
|
|
||||||
needs_bufread = false,
|
|
||||||
only_cond = false,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/opt/one-small-step-for-vimkind",
|
|
||||||
url = "https://github.com/jbyuki/one-small-step-for-vimkind"
|
|
||||||
},
|
|
||||||
["packer.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
|
||||||
url = "https://github.com/wbthomason/packer.nvim"
|
|
||||||
},
|
|
||||||
["plenary.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
|
||||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
|
||||||
},
|
|
||||||
["prettier.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/prettier.nvim",
|
|
||||||
url = "https://github.com/MunifTanjim/prettier.nvim"
|
|
||||||
},
|
|
||||||
["preview-swagger.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/preview-swagger.nvim",
|
|
||||||
url = "https://github.com/shuntaka9576/preview-swagger.nvim"
|
|
||||||
},
|
|
||||||
["rust-tools.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
|
|
||||||
url = "https://github.com/simrat39/rust-tools.nvim"
|
|
||||||
},
|
|
||||||
["symbols-outline.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
|
|
||||||
url = "https://github.com/simrat39/symbols-outline.nvim"
|
|
||||||
},
|
|
||||||
["telescope-dap.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/telescope-dap.nvim",
|
|
||||||
url = "https://github.com/nvim-telescope/telescope-dap.nvim"
|
|
||||||
},
|
|
||||||
["telescope-lsp-handlers.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/telescope-lsp-handlers.nvim",
|
|
||||||
url = "https://github.com/gbrlsnchs/telescope-lsp-handlers.nvim"
|
|
||||||
},
|
|
||||||
["telescope.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
|
||||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
|
||||||
},
|
|
||||||
["toggleterm.nvim"] = {
|
|
||||||
config = { "\27LJ\2\n8\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\15toggleterm\frequire\0" },
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/toggleterm.nvim",
|
|
||||||
url = "https://github.com/akinsho/toggleterm.nvim"
|
|
||||||
},
|
|
||||||
["trouble.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/trouble.nvim",
|
|
||||||
url = "https://github.com/folke/trouble.nvim"
|
|
||||||
},
|
|
||||||
["vim-airline"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-airline",
|
|
||||||
url = "https://github.com/bling/vim-airline"
|
|
||||||
},
|
|
||||||
["vim-easymotion"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-easymotion",
|
|
||||||
url = "https://github.com/easymotion/vim-easymotion"
|
|
||||||
},
|
|
||||||
["vim-fugitive"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
|
||||||
url = "https://github.com/tpope/vim-fugitive"
|
|
||||||
},
|
|
||||||
["vim-gitgutter"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
|
||||||
url = "https://github.com/airblade/vim-gitgutter"
|
|
||||||
},
|
|
||||||
["vim-helm"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-helm",
|
|
||||||
url = "https://github.com/towolf/vim-helm"
|
|
||||||
},
|
|
||||||
["vim-highlightedyank"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-highlightedyank",
|
|
||||||
url = "https://github.com/machakann/vim-highlightedyank"
|
|
||||||
},
|
|
||||||
["vim-vsnip"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/vim-vsnip",
|
|
||||||
url = "https://github.com/hrsh7th/vim-vsnip"
|
|
||||||
},
|
|
||||||
["vscode-js-debug"] = {
|
|
||||||
loaded = false,
|
|
||||||
needs_bufread = false,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/opt/vscode-js-debug",
|
|
||||||
url = "https://github.com/microsoft/vscode-js-debug"
|
|
||||||
},
|
|
||||||
["which-key.nvim"] = {
|
|
||||||
config = { "\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14which-key\frequire\0" },
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/markus/.local/share/nvim/site/pack/packer/start/which-key.nvim",
|
|
||||||
url = "https://github.com/folke/which-key.nvim"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
|
||||||
local module_lazy_loads = {
|
|
||||||
["^osv"] = "one-small-step-for-vimkind"
|
|
||||||
}
|
|
||||||
local lazy_load_called = {['packer.load'] = true}
|
|
||||||
local function lazy_load_module(module_name)
|
|
||||||
local to_load = {}
|
|
||||||
if lazy_load_called[module_name] then return nil end
|
|
||||||
lazy_load_called[module_name] = true
|
|
||||||
for module_pat, plugin_name in pairs(module_lazy_loads) do
|
|
||||||
if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat) then
|
|
||||||
to_load[#to_load + 1] = plugin_name
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if #to_load > 0 then
|
|
||||||
require('packer.load')(to_load, {module = module_name}, _G.packer_plugins)
|
|
||||||
local loaded_mod = package.loaded[module_name]
|
|
||||||
if loaded_mod then
|
|
||||||
return function(modname) return loaded_mod end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if not vim.g.packer_custom_loader_enabled then
|
|
||||||
table.insert(package.loaders, 1, lazy_load_module)
|
|
||||||
vim.g.packer_custom_loader_enabled = true
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Config for: nvim-surround
|
|
||||||
time([[Config for nvim-surround]], true)
|
|
||||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18nvim-surround\frequire\0", "config", "nvim-surround")
|
|
||||||
time([[Config for nvim-surround]], false)
|
|
||||||
-- Config for: toggleterm.nvim
|
|
||||||
time([[Config for toggleterm.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n8\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\15toggleterm\frequire\0", "config", "toggleterm.nvim")
|
|
||||||
time([[Config for toggleterm.nvim]], false)
|
|
||||||
-- Config for: which-key.nvim
|
|
||||||
time([[Config for which-key.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14which-key\frequire\0", "config", "which-key.nvim")
|
|
||||||
time([[Config for which-key.nvim]], false)
|
|
||||||
|
|
||||||
_G._packer.inside_compile = false
|
|
||||||
if _G._packer.needs_bufread == true then
|
|
||||||
vim.cmd("doautocmd BufRead")
|
|
||||||
end
|
|
||||||
_G._packer.needs_bufread = false
|
|
||||||
|
|
||||||
if should_profile then save_profiles() end
|
|
||||||
|
|
||||||
end)
|
|
||||||
|
|
||||||
if not no_errors then
|
|
||||||
error_msg = error_msg:gsub('"', '\\"')
|
|
||||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
|
||||||
end
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
column_width = 120
|
Loading…
Reference in New Issue