feat: add spell check
This commit is contained in:
parent
2bed6f50c0
commit
d42d294c95
122 changed files with 454 additions and 5657 deletions
44
nvim/lua/settings/barbar.lua
Normal file
44
nvim/lua/settings/barbar.lua
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
-- Set barbar's options
|
||||
require("bufferline").setup({
|
||||
animation = true,
|
||||
auto_hide = false,
|
||||
tabpages = true,
|
||||
closable = true,
|
||||
clickable = true,
|
||||
exclude_ft = { "javascript" },
|
||||
exclude_name = { "package.json" },
|
||||
icons = true,
|
||||
icon_custom_colors = false,
|
||||
icon_separator_active = "",
|
||||
icon_separator_inactive = "",
|
||||
icon_close_tab = "",
|
||||
icon_close_tab_modified = "●",
|
||||
icon_pinned = "車",
|
||||
insert_at_end = false,
|
||||
maximum_padding = 1,
|
||||
minimum_padding = 1,
|
||||
maximum_length = 30,
|
||||
semantic_letters = true,
|
||||
letters = "asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP",
|
||||
no_name_title = nil,
|
||||
})
|
||||
|
||||
local nvim_tree_events = require("nvim-tree.events")
|
||||
local bufferline_api = require("bufferline.api")
|
||||
|
||||
local function get_tree_size()
|
||||
return require("nvim-tree.view").View.width
|
||||
end
|
||||
|
||||
nvim_tree_events.subscribe("TreeOpen", function()
|
||||
bufferline_api.set_offset(get_tree_size())
|
||||
end)
|
||||
|
||||
nvim_tree_events.subscribe("Resize", function()
|
||||
bufferline_api.set_offset(get_tree_size())
|
||||
end)
|
||||
|
||||
nvim_tree_events.subscribe("TreeClose", function()
|
||||
bufferline_api.set_offset(0)
|
||||
end)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue