aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorMax Christian Pohle2023-01-20 00:42:58 +0100
committerMax Christian Pohle2023-01-20 00:42:58 +0100
commit5ec73d44d6eddb9491311f633f4be6ef609768b6 (patch)
tree65202f3f49df82992bfc72443ebbe8455fb0a509 /init.lua
parent5107a24190ebf257b8abe3bf959a0c1b1e032e53 (diff)
downloadvim-5ec73d44d6eddb9491311f633f4be6ef609768b6.tar.bz2
vim-5ec73d44d6eddb9491311f633f4be6ef609768b6.zip
qol improvements
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua38
1 files changed, 37 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 9cc1598..d58bbba 100644
--- a/init.lua
+++ b/init.lua
@@ -3,6 +3,12 @@ vim.cmd('source ~/.vim/vimrc')
3vim.o.termguicolors = true 3vim.o.termguicolors = true
4vim.o.exrc = true 4vim.o.exrc = true
5 5
6vim.o.shadafile = (os.getenv("XDG_CACHE_HOME") or
7 os.getenv("HOME") .. "/.cache"
8 ) .. "/vim.shada"
9
10-- vimscript: get(environ(), "XDG_CACHE_HOME", "~/.cache")."/vim.shada"
11
6require'man' 12require'man'
7 13
8require'colorizer'.setup() 14require'colorizer'.setup()
@@ -175,4 +181,34 @@ sources = cmp.config.sources({
175-- require'lspconfig'.html.setup{capabilities = capabilities} 181-- require'lspconfig'.html.setup{capabilities = capabilities}
176-- 182--
177-- require'lspconfig'.jsonls.setup{capabilities = capabilities} 183-- require'lspconfig'.jsonls.setup{capabilities = capabilities}
178-- 184--
185
186
187require'nvim-treesitter.configs'.setup {
188 -- A list of parser names, or "all"
189 ensure_installed = { "c", "bash", "javascript" },
190
191 -- Install parsers synchronously (only applied to `ensure_installed`)
192 sync_install = false,
193
194 -- Automatically install missing parsers when entering buffer
195 -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
196 auto_install = true,
197
198 -- List of parsers to ignore installing (for "all")
199 ignore_install = { "javascript" },
200
201 ---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
202 -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
203
204 highlight = {
205 -- `false` will disable the whole extension
206 enable = true,
207
208 -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
209 -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
210 -- Using this option may slow down your editor, and you may see some duplicate highlights.
211 -- Instead of true it can also be a list of languages
212 additional_vim_regex_highlighting = false,
213 },
214}
..