Skip to content

Commit

Permalink
fix: set the popup window to markdown filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
XXiaoA committed Apr 6, 2024
1 parent 52938ff commit 20cf050
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ _H.create_popup = function(buf, title, size_func, opts, style)

-- open the window and return the buffer
local win = vim.api.nvim_open_win(buf, true, options)
-- set the filetype to markdown
vim.api.nvim_buf_set_option(buf, "filetype", "markdown")

local resize = function()
-- get editor dimensions
Expand Down

0 comments on commit 20cf050

Please sign in to comment.