diff --git a/init.lua b/init.lua index 266efb8c..d6f0325d 100644 --- a/init.lua +++ b/init.lua @@ -492,7 +492,19 @@ mason_lspconfig.setup_handlers { end } vim.opt.termguicolors = true -require("bufferline").setup{} +local bufferline = require("bufferline") +bufferline.setup{ + options = { + offsets = { + { + filetype = "NvimTree", + text = "Virginity", + highlight = "Directory", + seperator = true, + }, + }, +} +} require("nvim-tree").setup {} diff --git a/lazy-lock.json b/lazy-lock.json index 7d2555cc..8986e483 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -23,6 +23,7 @@ "nvim-treesitter-textobjects": { "branch": "master", "commit": "bd103502252027434ec42f628d2dbf54821d4ce6" }, "nvim-web-devicons": { "branch": "master", "commit": "45d0237c427baba8cd05e0ab26d30e2ee58c2c82" }, "onedark.nvim": { "branch": "master", "commit": "dac8c39812dae025255c9069a260e1f69d967927" }, + "overseer.nvim": { "branch": "master", "commit": "8065976876cea89d0b99ffef4d997b930296f0e8" }, "plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "6e51d0cd6447cf2525412220ff0a2885eef9039c" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, diff --git a/lua/custom/plugins/overseer.lua b/lua/custom/plugins/overseer.lua new file mode 100644 index 00000000..e0e74801 --- /dev/null +++ b/lua/custom/plugins/overseer.lua @@ -0,0 +1,6 @@ +return { + 'stevearc/overseer.nvim', + opts = { + templates = { "builtin", "user.run_script" }, + }, +} diff --git a/lua/overseer/template/user/run_script.lua b/lua/overseer/template/user/run_script.lua new file mode 100644 index 00000000..986af572 --- /dev/null +++ b/lua/overseer/template/user/run_script.lua @@ -0,0 +1,22 @@ +-- /home/stevearc/.config/nvim/lua/overseer/template/user/run_script.lua +return { + name = "run script", + builder = function() + local file = vim.fn.expand("%:p") + local cmd = { file } + if vim.bo.filetype == "go" then + cmd = { "go", "run", file } + end + return { + cmd = cmd, + components = { + { "on_output_quickfix", set_diagnostics = true }, + "on_result_diagnostics", + "default", + }, + } + end, + condition = { + filetype = { "sh", "python", "go" }, + }, +}