Updating code_runner config
This commit is contained in:
parent
b7014515cc
commit
06f2898fc2
|
|
@ -18,7 +18,7 @@ require('lazy').setup({
|
||||||
-- One liners
|
-- One liners
|
||||||
-- Highlight todo, notes, etc in comments
|
-- Highlight todo, notes, etc in comments
|
||||||
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
||||||
{ 'CRAG666/code_runner.nvim', config = true }, -- Exe3cute code within nvim.
|
-- { 'CRAG666/code_runner.nvim', config = true }, -- Execute code within nvim.
|
||||||
|
|
||||||
-- Plugins with custom values
|
-- Plugins with custom values
|
||||||
require 'plugins_config/which-key', -- Show created key bindings
|
require 'plugins_config/which-key', -- Show created key bindings
|
||||||
|
|
@ -33,7 +33,7 @@ require('lazy').setup({
|
||||||
require 'plugins_config/mini', -- Collections of useful mini plugins, like around/surround
|
require 'plugins_config/mini', -- Collections of useful mini plugins, like around/surround
|
||||||
require 'plugins_config/tree-sitter', -- manage lint, indentation and some othe language related tasks
|
require 'plugins_config/tree-sitter', -- manage lint, indentation and some othe language related tasks
|
||||||
require 'plugins_config/harpoon', -- Improve workflow for multiple files
|
require 'plugins_config/harpoon', -- Improve workflow for multiple files
|
||||||
-- require 'plugins_config/code_runner', -- Code runner
|
require 'plugins_config/code_runner', -- Code runner
|
||||||
-- require 'plugins_config/copilot', -- copilot config
|
-- require 'plugins_config/copilot', -- copilot config
|
||||||
|
|
||||||
-- Broken configs/Testing config
|
-- Broken configs/Testing config
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
return {
|
||||||
|
'CRAG666/code_runner.nvim',
|
||||||
|
config = function()
|
||||||
|
require('code_runner').setup {
|
||||||
|
filetype = {
|
||||||
|
python = 'python3 -u',
|
||||||
|
typescript = 'deno run',
|
||||||
|
rust = {
|
||||||
|
'cd $dir &&',
|
||||||
|
'rustc $fileName &&',
|
||||||
|
'$dir/$fileNameWithoutExt',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
event = 'VeryLazy', -- or "BufEnter" if we want to load sooner.
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue