This commit is contained in:
asep komarudin 2023-06-15 07:25:49 +07:00
parent 4898634bfc
commit f9ed77e425
4 changed files with 37 additions and 25 deletions

View file

@ -31,12 +31,17 @@ bufferline.setup({
options = {
color_icons = true,
numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string,
close_command = function(bufnum)
require("bufdelete").bufdelete(bufnum, true)
end,
right_mouse_command = function(bufnum)
require("bufdelete").bufdelete(bufnum, true)
end,
-- close_command = function(bufnum)
-- require("bufdelete").bufdelete(bufnum, true)
-- end,
-- right_mouse_command = function(bufnum)
-- require("bufdelete").bufdelete(bufnum, true)
-- end,
close_command = "bdelete! %d",
right_mouse_command = "bdelete! %d",
left_mouse_command = "buffer %d",
middle_mouse_command = nil,
indicator_icon = nil,
indicator = { style = "icon", icon = "" },
buffer_close_icon = icons.ui.Close,

View file

@ -6,7 +6,8 @@ end
local rfile = {
java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
python = "python3 -u",
typescript = "deno run",
--typescript = "deno run",
typescript = "ts-node $dir/$fileName", -- npm install -g ts-node
rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt",
-- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt"
cpp = "g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",

View file

@ -15,6 +15,12 @@ material_icon.setup({
cterm_color = "220",
name = "Mjs",
},
["ts"] = {
icon = "󰛦",
color = "#30A2FF",
cterm_color = "220",
name = "ts",
},
},
color_icons = true,
default = true,