This commit is contained in:
Leon Grünewald 2022-11-14 11:25:16 +01:00
parent 5455912565
commit 1ac4972841
2 changed files with 28 additions and 32 deletions

View file

@ -1,15 +1,14 @@
source ~/.vimrc
lua << EOF
require("nvim-lsp-installer").setup {
automatic_installation = true
}
-- require("nvim-lsp-installer").setup {
-- automatic_installation = true
-- }
require('impatient')
require('orgmode').setup_ts_grammar()
local nvim_lsp = require('lspconfig')
local lsp_extensions = require('lsp_extensions')
local coq = require('coq')
local null_ls = require('null-ls');
lsp_extensions.inlay_hints{
highlight = "Comment",
@ -19,18 +18,6 @@ lsp_extensions.inlay_hints{
enabled = { "ChainingHint" }
}
null_ls.setup{
sources = {
null_ls.builtins.diagnostics.php,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.rustfmt,
null_ls.builtins.formatting.eslint,
null_ls.builtins.formatting.phpcsfixer,
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.phpcbf,
}
}
require('colorizer').setup{}
require('feline').setup{}
require('bufferline').setup{}
@ -70,14 +57,21 @@ local on_attach = function (client, bufnr)
buf_set_keymap('n', '=', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
end
-- local coq = require('coq')
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup(coq.lsp_ensure_capabilities({
-- nvim_lsp[lsp].setup(coq.lsp_ensure_capabilities({
-- on_attach = on_attach,
-- flags = {
-- debounce_text_changes = 150,
-- }
-- }))
nvim_lsp[lsp].setup({
on_attach = on_attach,
flags = {
debounce_text_changes = 150,
}
}
))
})
end
EOF

26
.vimrc
View file

@ -4,33 +4,32 @@ let mapleader=' '
call plug#begin('~/.vim/plugged')
if has('nvim')
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'lewis6991/impatient.nvim'
"
Plug 'akinsho/bufferline.nvim'
Plug 'feline-nvim/feline.nvim'
Plug 'glepnir/dashboard-nvim'
Plug 'jose-elias-alvarez/null-ls.nvim'
Plug 'lewis6991/impatient.nvim'
Plug 'ms-jpq/coq.artifacts'
Plug 'ms-jpq/coq_nvim'
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
" Plug 'ms-jpq/coq.artifacts'
" Plug 'ms-jpq/coq_nvim'
Plug 'nathom/filetype.nvim'
Plug 'neovim/nvim-lspconfig'
Plug 'norcalli/nvim-colorizer.lua'
Plug 'nvim-lua/lsp_extensions.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'onsails/lspkind-nvim'
Plug 'nvim-orgmode/orgmode'
Plug 'nvim-telescope/telescope.nvim'
Plug 'onsails/lspkind-nvim'
Plug 'ray-x/lsp_signature.nvim'
Plug 'williamboman/nvim-lsp-installer'
" Plug 'williamboman/nvim-lsp-installer'
Plug 'windwp/nvim-autopairs'
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
endif
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'adelarsq/vim-matchit'
Plug 'alvan/vim-closetag'
Plug 'andymass/vim-matchup'
Plug 'ghifarit53/tokyonight-vim'
Plug 'honza/vim-snippets'
Plug 'justinmk/vim-sneak'
Plug 'mattn/emmet-vim'
Plug 'mipmip/vim-fluid'
@ -49,7 +48,6 @@ if has('nvim')
nnoremap <leader>fb <cmd>lua require('telescope.builtin').buffers()<cr>
nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>
"" CHADTree config
if &diff
else
@ -58,6 +56,10 @@ if has('nvim')
nnoremap <leader>v <cmd>CHADopen<cr>
endif
"" Emmet
let g:user_emmet_mode='n' "only enable normal mode functions.
let g:user_emmet_leader_key='<C-Z>'
"" Ultrasnips
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"