mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
project lead is allergic to changes...
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user