Skip to content

Commit

Permalink
fix: set highlight for neovim stable
Browse files Browse the repository at this point in the history
Closed #59, #60
  • Loading branch information
jellydn committed Jan 26, 2024
1 parent 0e4ec3c commit 8317978
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lua/hurl/split.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,8 @@ M.show = function(data, type)
end)

-- Only change the buffer option on nightly builds
if vim.fn.has('nvim-0.10.0') == 1 then
-- Set content to highlight
vim.api.nvim_buf_set_option(split.bufnr, 'filetype', type)
-- Add word wrap
vim.api.nvim_buf_set_option(split.bufnr, 'wrap', true)
-- Enable folding for bottom buffer
vim.api.nvim_buf_set_option(split.bufnr, 'foldmethod', 'expr')
end
-- Set content to highlight, refer https://github.com/MunifTanjim/nui.nvim/issues/76#issuecomment-1001358770
vim.api.nvim_buf_set_option(split.bufnr, 'filetype', type)
end

M.clear = function()
Expand Down

0 comments on commit 8317978

Please sign in to comment.