diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 38 |
1 files changed, 37 insertions, 1 deletions
@@ -3,6 +3,12 @@ vim.cmd('source ~/.vim/vimrc') | |||
3 | vim.o.termguicolors = true | 3 | vim.o.termguicolors = true |
4 | vim.o.exrc = true | 4 | vim.o.exrc = true |
5 | 5 | ||
6 | vim.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 | |||
6 | require'man' | 12 | require'man' |
7 | 13 | ||
8 | require'colorizer'.setup() | 14 | require'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 | |||
187 | require'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 | } | ||