project lead is allergic to changes...

This commit is contained in:
coolnsx
2023-01-05 16:27:19 +05:30
parent 1f568f3cc2
commit a9c0c5c8a2
10 changed files with 63 additions and 232 deletions

View File

@@ -1,4 +1,4 @@
-- my neovim config uwu
-- functionality setup
local set = vim.opt
@@ -36,6 +36,7 @@ require('packer').startup(function(use)
use 'saadparwaiz1/cmp_luasnip'
use 'L3MON4D3/LuaSnip'
use "rafamadriz/friendly-snippets"
use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
if packer_bootstrap then
require('packer').sync()
@@ -167,3 +168,34 @@ local dap = require('dap')
command = os.getenv('HOME') .. '/.virtualenvs/tools/bin/python';
args = { '-m', 'debugpy.adapter' };
}
--treesitter
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all"
ensure_installed = { "c", "lua", "bash", "html", "css","php","javascript", "python" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
-- List of parsers to ignore installing (for "all")
ignore_install = { "javascript" },
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
highlight = {
-- `false` will disable the whole extension
enable = true,
-- 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,
},
}