dotfiles/nvim/after/plugin/settings.lua

47 lines
1.4 KiB
Lua
Raw Normal View History

2024-01-16 18:32:22 -06:00
-- lsp-zero
local lsp = require('lsp-zero')
lsp.preset('recommended')
lsp.setup()
-- Treesitter
vim.opt.runtimepath:append("~/.local/share/nvim/parsers")
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "cpp", "javascript", "lua", "vim" },
-- 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,
parser_install_dir = "~/.local/share/nvim/parsers",
highlight = {
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,
},
}
-- Obsidian
vim.opt.conceallevel = 1
-- Colors
function ColorMyPencils(color)
color = color or "catppuccin-frappe"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
ColorMyPencils()