Add colorscheme update and add filetype to buffer.

This commit is contained in:
kiyan42
2020-05-17 18:21:03 +02:00
parent 52d1d7e401
commit 020db73532
5 changed files with 80 additions and 48 deletions

View File

@@ -66,6 +66,7 @@ function M.open()
local buf = api.nvim_create_buf(false, true)
api.nvim_buf_set_name(buf, M.BUF_NAME)
api.nvim_buf_set_option(buf, 'filetype', M.BUF_NAME)
for opt, val in pairs(options) do
api.nvim_buf_set_option(buf, opt, val)