Demogorgon
This commit is contained in:
parent
33c4ceb7d6
commit
94f725d566
1 changed files with 60 additions and 4 deletions
|
@ -69,7 +69,24 @@ if empty(glob('~/.config/nvim/autoload/plug.vim'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#begin('~/.config/nvim/autoload/plugged')
|
call plug#begin('~/.config/nvim/autoload/plugged')
|
||||||
|
" LSP Support
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
Plug 'williamboman/nvim-lsp-installer'
|
||||||
|
|
||||||
|
" Autocompletion
|
||||||
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
|
Plug 'hrsh7th/cmp-buffer'
|
||||||
|
Plug 'hrsh7th/cmp-path'
|
||||||
|
Plug 'saadparwaiz1/cmp_luasnip'
|
||||||
|
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||||
|
Plug 'hrsh7th/cmp-nvim-lua'
|
||||||
|
|
||||||
|
" Snippets
|
||||||
|
Plug 'L3MON4D3/LuaSnip'
|
||||||
|
Plug 'rafamadriz/friendly-snippets'
|
||||||
|
|
||||||
|
Plug 'VonHeikemen/lsp-zero.nvim'
|
||||||
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' }
|
Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' }
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
|
||||||
|
@ -92,6 +109,12 @@ call plug#begin('~/.config/nvim/autoload/plugged')
|
||||||
|
|
||||||
Plug 'voldikss/vim-floaterm'
|
Plug 'voldikss/vim-floaterm'
|
||||||
Plug 'skywind3000/asyncrun.vim'
|
Plug 'skywind3000/asyncrun.vim'
|
||||||
|
|
||||||
|
Plug 'vim-test/vim-test'
|
||||||
|
|
||||||
|
Plug 'folke/which-key.nvim'
|
||||||
|
|
||||||
|
Plug 'mhinz/vim-startify'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Use aura theme installed above
|
" Use aura theme installed above
|
||||||
|
@ -144,10 +167,6 @@ let g:nvim_tree_icons = {
|
||||||
nnoremap <Leader><Tab> :NvimTreeToggle<CR>
|
nnoremap <Leader><Tab> :NvimTreeToggle<CR>
|
||||||
"" Lint
|
"" Lint
|
||||||
let b:ale_fixers = ['prettier', 'eslint']
|
let b:ale_fixers = ['prettier', 'eslint']
|
||||||
"" LSP
|
|
||||||
lua <<EOF
|
|
||||||
require'lspconfig'.pyright.setup{}
|
|
||||||
EOF
|
|
||||||
"" Telescope
|
"" Telescope
|
||||||
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||||
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||||
|
@ -174,3 +193,40 @@ nnoremap <leader>ga <cmd>:AsyncRun -mode=term -pos=floaterm git add -p<cr>
|
||||||
nnoremap <leader>gc :AsyncRun -mode=term -pos=floaterm git commit -m ""
|
nnoremap <leader>gc :AsyncRun -mode=term -pos=floaterm git commit -m ""
|
||||||
" Comment italics
|
" Comment italics
|
||||||
highlight Comment cterm=italic gui=italic
|
highlight Comment cterm=italic gui=italic
|
||||||
|
" LSP Zero
|
||||||
|
lua << EOF
|
||||||
|
require'lspconfig'.pyright.setup{}
|
||||||
|
local lsp = require('lsp-zero')
|
||||||
|
|
||||||
|
lsp.preset('recommended')
|
||||||
|
lsp.setup()
|
||||||
|
EOF
|
||||||
|
" vim-test
|
||||||
|
let test#strategy = "floaterm"
|
||||||
|
nmap <silent> <leader>t :TestNearest<CR>
|
||||||
|
nmap <silent> <leader>T :TestFile<CR>
|
||||||
|
nmap <silent> <leader>ts :TestSuite<CR>
|
||||||
|
nmap <silent> <leader>tl :TestLast<CR>
|
||||||
|
nmap <silent> <leader>tv :TestVisit<CR>
|
||||||
|
" which-key
|
||||||
|
nmap <silent> <leader>? :WhichKey<CR>
|
||||||
|
lua << EOF
|
||||||
|
require("which-key").setup {}
|
||||||
|
EOF
|
||||||
|
"" vim-startify
|
||||||
|
let g:startify_custom_header = [
|
||||||
|
\ 'Gaiety | 2022',
|
||||||
|
\ '▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄',
|
||||||
|
\ '██░▄▄▀█░▄▄█░▄▀▄░█▀▄▄▀█░▄▄▄█▀▄▄▀█░▄▄▀█░▄▄▄█▀▄▄▀█░▄▄▀██',
|
||||||
|
\ '██░██░█░▄▄█░█▄█░█░██░█░█▄▀█░██░█░▀▀▄█░█▄▀█░██░█░██░██',
|
||||||
|
\ '██░▀▀░█▄▄▄█▄███▄██▄▄██▄▄▄▄██▄▄██▄█▄▄█▄▄▄▄██▄▄██▄██▄██',
|
||||||
|
\ '▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀',
|
||||||
|
\ '',
|
||||||
|
\ 'MAPPING ACTION',
|
||||||
|
\ '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━',
|
||||||
|
\ '<Space> Leader',
|
||||||
|
\ '<Leader>? List Bindings',
|
||||||
|
\ '',
|
||||||
|
\ ]
|
||||||
|
let g:startify_change_to_dir = 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue