mirror of
https://github.com/Myzel394/easytables.nvim.git
synced 2025-06-18 06:55:25 +02:00
Merge pull request #6 from Davidyz/master
fix: set buftype to nofile so that the plugin does not save the cell by accident
This commit is contained in:
commit
ae57fdaad2
@ -117,6 +117,8 @@ function M:_open_preview_window()
|
|||||||
height = 1
|
height = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_set_option_value("buftype", "nofile", { buf = self.preview_buffer })
|
||||||
|
|
||||||
-- Disable default highlight
|
-- Disable default highlight
|
||||||
vim.api.nvim_set_option_value(
|
vim.api.nvim_set_option_value(
|
||||||
"winhighlight",
|
"winhighlight",
|
||||||
@ -146,6 +148,8 @@ function M:_open_prompt_window()
|
|||||||
height = 1
|
height = 1
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_set_option_value("buftype", "nofile", { buf = self.prompt_buffer })
|
||||||
|
|
||||||
vim.api.nvim_set_option_value('winhighlight', "Normal:Normal", { win = self.prompt_window })
|
vim.api.nvim_set_option_value('winhighlight', "Normal:Normal", { win = self.prompt_window })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user