Skip to content

Commit

Permalink
fix: remmove nvim-treesitter-endwise, add b:workspace_folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Sep 9, 2024
1 parent 4082f5e commit 95c2c6a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
16 changes: 15 additions & 1 deletion root/.config/nvim/lua/plugins/ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,21 @@ elseif vim.g.ai_complete == "copilot" then
-- See Commands section for default commands if you want to lazy load on them
},
"github/copilot.vim",
-- https://github.com/olimorris/codecompanion.nvim
-- https://github.com/magicalne/nvim.ai
-- {
-- "olimorris/codecompanion.nvim",
-- dependencies = {
-- "nvim-lua/plenary.nvim",
-- "nvim-treesitter/nvim-treesitter",
-- "hrsh7th/nvim-cmp", -- Optional: For using slash commands and variables in the chat buffer
-- "nvim-telescope/telescope.nvim", -- Optional: For working with files with slash commands
-- -- {
-- -- "stevearc/dressing.nvim", -- Optional: Improves the default Neovim UI
-- -- opts = {},
-- -- },
-- },
-- config = true
-- },
-- {
-- "yetone/avante.nvim",
-- event = "VeryLazy",
Expand Down
2 changes: 1 addition & 1 deletion root/.config/nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ return {
build = ":TSUpdate",
config = plugins_setup.nvim_treesitter,
dependencies = {
"RRethy/nvim-treesitter-endwise",
-- "RRethy/nvim-treesitter-endwise",
},
},
{
Expand Down
1 change: 1 addition & 0 deletions root/.config/nvim/lua/plugins/vimplug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ local M = {
"inkarkat/vim-ingo-library",
},
},
"tpope/vim-endwise",
-- take place of 'airblade/vim-gitgutter',
{
"lewis6991/gitsigns.nvim",
Expand Down
3 changes: 2 additions & 1 deletion root/.config/nvim/lua/plugins_setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ function M.nvim_treesitter()
enable = true,
additional_vim_regex_highlighting = false,
},
-- https://github.com/RRethy/nvim-treesitter-endwise
endwise = {
enable = true,
enable = false, -- nvim-treesitter-endwise is not maintained
},
-- https://github.com/andymass/vim-matchup
matchup = {
Expand Down
2 changes: 2 additions & 0 deletions root/.vim/vimrc.d/ai.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if v:version >= 900 || has('nvim')
imap <M-w> <Plug>(copilot-accept-word)
imap <M-l> <Plug>(copilot-accept-line)
imap <M-s> <Plug>(copilot-suggest)
" copilot workspace folder
autocmd BufReadPost,BufNewFile * ++once let b:workspace_folder = asyncrun#current_root()

elseif g:ai_complete == 'codeium'
" Alternative: https://github.com/Exafunction/codeium.nvim
Expand Down

0 comments on commit 95c2c6a

Please sign in to comment.