diff --git a/init.lua b/init.lua index 64da3ad..20c6883 100644 --- a/init.lua +++ b/init.lua @@ -147,6 +147,7 @@ defaults = {lazy = true}, {'mfussenegger/nvim-dap', event = 'LspAttach'}, {'rcarriga/nvim-dap-ui', event = 'LspAttach'}, {'suketa/nvim-dap-ruby', config = true, event = 'LspAttach'}, +{'is0n/jaq-nvim', event = 'LspAttach'}, {'j-hui/fidget.nvim', config = true, event = 'LspAttach'}, {'sainnhe/edge', event = 'VeryLazy'}, {'nvim-lua/plenary.nvim', event = 'VeryLazy'}, @@ -429,6 +430,56 @@ require('dapui').setup({ }) +---jaq-nvim +require('jaq-nvim').setup{ + cmds = { + internal = { + lua = 'luafile %', + vim = 'source %' + }, + external = { + markdown = 'glow %', + python = 'python3 %', + go = 'go run %', + sh = 'sh %', + ruby = 'ruby %', + } + }, + + behavior = { + default = 'float', + startinsert = false, + wincmd = false, + autosave = false + }, + + ui = { + float = { + border = 'none', + winhl = 'Normal', + borderhl = 'FloatBorder', + winblend = 0, + height = 0.8, + width = 0.8, + x = 0.5, + y = 0.5 + }, + + terminal = { + position = 'bot', + size = 10, + line_no = false + }, + quickfix = { + position = 'bot', + size = 10 + } + } +} + +vim.keymap.set('n', 'j', ':Jaq', { silent = true}) + + --nvim-cmp local cmp = require('cmp') local lspkind = require('lspkind')