aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/firenvim.lua
blob: d39627b32e30afa40ae65b9dff1ef0d1f9e0a746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
return {
    'glacambre/firenvim',
    build = ":call firenvim#install(0)",

    -- Lazy load firenvim
    -- Explanation: https://github.com/folke/lazy.nvim/discussions/463#discussioncomment-4819297
    lazy = not vim.g.started_by_firenvim,
    config = function()
        vim.g.firenvim_config = {
            localSettings = {
                ['.*'] = {
                    cmdline = 'none',
                    priority = 0,
                    selector = 'textarea',
                    takeover = 'never',
                },
            },
        }
        vim.api.nvim_create_autocmd({'BufEnter'}, {
            pattern = "github.com_*.txt",
            command = "set filetype=markdown"
        })
    end
}