This commit is contained in:
d0zingcat
2022-07-13 13:49:59 +08:00
parent d25a26498c
commit b8efbe426f
11 changed files with 72 additions and 560 deletions

View File

@@ -29,10 +29,6 @@ require('nvim-tree').setup({
hint = '',
},
},
update_to_buf_dir = {
enable = true,
auto_update = true,
},
update_focused_file = {
enable = true,
},
@@ -42,7 +38,6 @@ require('nvim-tree').setup({
--auto_close = true,
hijack_netrw = true,
update_cwd = true,
focus_tree = false,
open_on_setup = true,
})

View File

@@ -1,14 +1,4 @@
-- treesitter
require('nvim-treesitter.configs').setup({
ensure_installed = 'all', -- one of "all", "maintained" (parsers with maintainers), or a list of languages
ignore_install = { 'javascript' }, -- List of parsers to ignore installing
highlight = {
enable = true, -- false will disable the whole extension
disable = {}, -- list of language that will be disabled
-- 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,
},
ensure_installed = { 'rust', 'go', 'python', 'lua', 'c' }, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
})

View File

@@ -70,7 +70,7 @@ return require('packer').startup(function(use)
end,
})
use('wakatime/vim-wakatime')
use('psf/black')
--use('psf/black')
use({
'preservim/nerdcommenter',
config = function()
@@ -122,18 +122,18 @@ return require('packer').startup(function(use)
require('config.nvim-lsputils')
end,
})
use({
'github/copilot.vim',
setup = function()
vim.g.copilot_no_tab_map = 1
vim.g.copilot_no_maps = 1
vim.g.copilot_assume_mapped = 1
end,
config = function()
local map = require('utils').map
map('i', '<C-e>', 'copilot#Accept()', { expr = true })
end,
})
--use({
--'github/copilot.vim',
--setup = function()
--vim.g.copilot_no_tab_map = 1
--vim.g.copilot_no_maps = 1
--vim.g.copilot_assume_mapped = 1
--end,
--config = function()
--local map = require('utils').map
--map('i', '<C-e>', 'copilot#Accept()', { expr = true })
--end,
--})
use({
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',