dotfiles

Personal dotfiles.
git clone git://vcs.sapka.me/dotfiles
Log | Files | Refs | Submodules

commit e8a25aac23f6db3abf3d0b7b5c0b588eee45d84d
parent 5eef519c4d266335b7817a8fc34a2bdad2b9a56b
Author: Michal Sapka <michal@sapka.me>
Date:   Sun, 22 May 2022 00:13:21 +0200

Add treesitter

Diffstat:
Mnvim/init.lua | 8+++++++-
Anvim/lua/user/treesitter.lua | 23+++++++++++++++++++++++
Mnvim/plugin/packer_compiled.lua | 20+++++++++++++++-----
3 files changed, 45 insertions(+), 6 deletions(-)

diff --git a/nvim/init.lua b/nvim/init.lua @@ -200,8 +200,8 @@ cmp.setup { }, } --- LSP require "user.lsp" +require "user.treesitter" -- Install your plugins here @@ -248,6 +248,12 @@ return packer.startup(function(use) use "tamago324/nlsp-settings.nvim" -- language server settings defined in json for use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters + --treesitter + use { + "nvim-treesitter/nvim-treesitter", + run = 'TSUpdate' + } + -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if PACKER_BOOTSTRAP then diff --git a/nvim/lua/user/treesitter.lua b/nvim/lua/user/treesitter.lua @@ -0,0 +1,23 @@ +local status_ok, configs = pcall(require, "nvim-treesitter.configs") +if not status_ok then + return +end + +configs.setup { + ensure_installed = {"html", "ruby", "go", "javascript", "bash", "java", "json", "tsx", "lua" }, + sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) + ignore_install = { "" }, -- List of parsers to ignore installing + autopairs = { + enable = true, + }, + highlight = { + enable = true, -- false will disable the whole extension + disable = { "" }, -- list of language that will be disabled + additional_vim_regex_highlighting = true, + }, + indent = { enable = true, disable = { "yaml" } }, + context_commentstring = { + enable = true, + enable_autocmd = false, + }, +} diff --git a/nvim/plugin/packer_compiled.lua b/nvim/plugin/packer_compiled.lua @@ -120,6 +120,16 @@ _G.packer_plugins = { path = "/home/msapka/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, + ["nlsp-settings.nvim"] = { + loaded = true, + path = "/home/msapka/.local/share/nvim/site/pack/packer/start/nlsp-settings.nvim", + url = "https://github.com/tamago324/nlsp-settings.nvim" + }, + ["null-ls.nvim"] = { + loaded = true, + path = "/home/msapka/.local/share/nvim/site/pack/packer/start/null-ls.nvim", + url = "https://github.com/jose-elias-alvarez/null-ls.nvim" + }, ["nvim-cmp"] = { loaded = true, path = "/home/msapka/.local/share/nvim/site/pack/packer/start/nvim-cmp", @@ -131,7 +141,6 @@ _G.packer_plugins = { url = "https://github.com/williamboman/nvim-lsp-installer" }, ["nvim-lspconfig"] = { - config = { "\27LJ\2\nv\0\0\4\0\5\0\0146\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\0016\0\0\0'\2\3\0B\0\2\0029\1\4\0009\1\2\0014\3\0\0B\1\2\1K\0\1\0\16sumneko_lua\14lspconfig\nsetup\23nvim-lsp-installer\frequire\0" }, loaded = true, path = "/home/msapka/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" @@ -141,6 +150,11 @@ _G.packer_plugins = { path = "/home/msapka/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", url = "https://github.com/kyazdani42/nvim-tree.lua" }, + ["nvim-treesitter"] = { + loaded = true, + path = "/home/msapka/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, ["nvim-web-devicons"] = { loaded = true, path = "/home/msapka/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", @@ -169,10 +183,6 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) --- Config for: nvim-lspconfig -time([[Config for nvim-lspconfig]], true) -try_loadstring("\27LJ\2\nv\0\0\4\0\5\0\0146\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\0016\0\0\0'\2\3\0B\0\2\0029\1\4\0009\1\2\0014\3\0\0B\1\2\1K\0\1\0\16sumneko_lua\14lspconfig\nsetup\23nvim-lsp-installer\frequire\0", "config", "nvim-lspconfig") -time([[Config for nvim-lspconfig]], false) -- Config for: gitsigns.nvim time([[Config for gitsigns.nvim]], true) try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0", "config", "gitsigns.nvim")