Update for Neovim 0.10.0

Signed-off-by: Danila Fedorin <daniel.fedorin@hpe.com>
This commit is contained in:
Danila Fedorin 2024-05-19 22:32:04 -07:00
parent 55e6c796b7
commit 255aec5a3c

View File

@ -42,6 +42,10 @@ Plug 'luochen1990/rainbow'
Plug 'simrat39/symbols-outline.nvim' Plug 'simrat39/symbols-outline.nvim'
Plug 'folke/todo-comments.nvim' Plug 'folke/todo-comments.nvim'
" AI (Yes, you heard me)
Plug 'aduros/ai.vim'
Plug 'github/copilot.vim'
" Misc " Misc
Plug 'uga-rosa/utf8.nvim' Plug 'uga-rosa/utf8.nvim'
Plug 'nvim-lua/plenary.nvim' Plug 'nvim-lua/plenary.nvim'
@ -68,6 +72,7 @@ autocmd BufRead,BufNewFile *.dl set filetype=dl " Datalog is Datalog
autocmd FileType crystal setlocal shiftwidth=2 " Crystal likes 2-wide indent autocmd FileType crystal setlocal shiftwidth=2 " Crystal likes 2-wide indent
autocmd FileType cpp setlocal shiftwidth=2 " Chapel has two-wide indents autocmd FileType cpp setlocal shiftwidth=2 " Chapel has two-wide indents
autocmd BufRead,BufNewFile *.ast set filetype=ast " AST files are from Chapel. autocmd BufRead,BufNewFile *.ast set filetype=ast " AST files are from Chapel.
autocmd VimEnter * Copilot enable
" Settings for Rainbow " Settings for Rainbow
let g:rainbow_active = 1 let g:rainbow_active = 1
@ -93,6 +98,7 @@ let g:fzf_action = { 'enter': 'tab drop' }
let g:neovide_cursor_vfx_mode="ripple" let g:neovide_cursor_vfx_mode="ripple"
colorscheme nord colorscheme nord
hi Comment guifg=#A3BE8C
lua require('lspconfig').hls.setup{} lua require('lspconfig').hls.setup{}
lua require('lspconfig').rls.setup{} lua require('lspconfig').rls.setup{}
@ -142,16 +148,15 @@ function! g:CoqtailHighlight()
hi default link CoqtailSent PmenuSel hi default link CoqtailSent PmenuSel
endfunction endfunction
lua << EOF
require("todo-comments").setup {
search = { command = "ag", },
}
EOF
lua << EOF lua << EOF
local lspconfig = require 'lspconfig' local lspconfig = require 'lspconfig'
local configs = require 'lspconfig.configs' local configs = require 'lspconfig.configs'
local util = require 'lspconfig.util' local util = require 'lspconfig.util'
local todocomments = require 'todo-comments'
todocomments.setup {
search = { command = "ag", },
}
configs.chplcheck = { configs.chplcheck = {
default_config = { default_config = {
@ -178,4 +183,6 @@ lua << EOF
lspconfig.chplcheck.setup{} lspconfig.chplcheck.setup{}
lspconfig.chpllsp.setup{} lspconfig.chpllsp.setup{}
vim.cmd("autocmd BufRead,BufNewFile *.chpl set filetype=chpl") vim.cmd("autocmd BufRead,BufNewFile *.chpl set filetype=chpl")
vim.lsp.inlay_hint.enable(true, nil)
EOF EOF