mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
auto_set_synax. closes #208
This commit is contained in:
@@ -45,6 +45,10 @@ local function defaultConfig(home)
|
||||
-- and thus the telekasten syntax will not be loaded either
|
||||
auto_set_filetype = true,
|
||||
|
||||
-- auto-set telekasten syntax: if false, the telekasten syntax will not be set
|
||||
-- this syntax setting is independent from auto-set filetype
|
||||
auto_set_syntax = true,
|
||||
|
||||
-- dir names for special notes (absolute path or subdir name)
|
||||
dailies = home .. "/" .. "daily",
|
||||
weeklies = home .. "/" .. "weekly",
|
||||
@@ -1213,6 +1217,9 @@ picker_actions.post_open = function()
|
||||
if M.Cfg.auto_set_filetype then
|
||||
vim.cmd("set ft=telekasten")
|
||||
end
|
||||
if M.Cfg.auto_set_syntax then
|
||||
vim.cmd("set syntax=telekasten")
|
||||
end
|
||||
end
|
||||
|
||||
picker_actions.select_default = function(prompt_bufnr)
|
||||
|
||||
Reference in New Issue
Block a user