This commit is contained in:
arnold-lei 2023-09-27 21:20:38 -06:00
parent f7565c3e45
commit c77521f028
2 changed files with 10 additions and 3 deletions

View File

@ -133,6 +133,8 @@ require('lazy').setup({
theme = 'auto',
component_separators = '|',
section_separators = '',
'filename',
path=1,
},
},
},
@ -298,6 +300,10 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim' },
modules = {},
sync_install = false,
ignore_install = {},
parser_install_dir = nil,
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
@ -463,6 +469,7 @@ cmp.setup {
luasnip.lsp_expand(args.body)
end,
},
revision=1,
mapping = cmp.mapping.preset.insert {
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-p>'] = cmp.mapping.select_prev_item(),

View File

@ -1,9 +1,9 @@
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true