Fix iron.nvim config

feature/lua-configs
Alex Selimov 8 months ago
parent 80526d30e5
commit 802de8b088

@ -1,4 +1,3 @@
inoremap <Space><Space> <Esc>/<++><Enter>"_c4l
set spell spellfile="~/.config/nvim/spell/wordlist" set spell spellfile="~/.config/nvim/spell/wordlist"
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'fortran'] let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'fortran']
"set conceallevel=2 "set conceallevel=2
@ -9,14 +8,6 @@ map <C-b> : w % <Bar> AsyncRun md2pdf "%" <CR>
map <A-p> : w % <Bar> AsyncRun md2beamer "%" <CR> map <A-p> : w % <Bar> AsyncRun md2beamer "%" <CR>
map <A-b> : w % <Bar> AsyncRun md2docx % <CR> map <A-b> : w % <Bar> AsyncRun md2docx % <CR>
map <C-z> : !zathura %:r.pdf & <CR> map <C-z> : !zathura %:r.pdf & <CR>
inoremap ;i ** <++><Esc>5hi set tw=1000
inoremap ;b **** <++><Esc>6hi
inoremap ;l [](<++>)<Esc>6hi
inoremap ;I ![](<++>)<Esc>6hi
inoremap ;pc ```<CR>```<Esc>O
inoremap ;cu - [ ]
inoremap ;cc - [x]
set tw=200
set colorcolumn= set colorcolumn=

@ -14,9 +14,6 @@ vim.opt.mouse = ""
-- Don't show the mode, since it's already in status line -- Don't show the mode, since it's already in status line
vim.opt.showmode = false vim.opt.showmode = false
-- Enable break indent
vim.opt.breakindent = true
-- Case-insensitive searching UNLESS \C or capital in search -- Case-insensitive searching UNLESS \C or capital in search
vim.opt.ignorecase = true vim.opt.ignorecase = true
vim.opt.smartcase = true vim.opt.smartcase = true
@ -201,6 +198,7 @@ require("lazy").setup({
"tpope/vim-sleuth", "tpope/vim-sleuth",
{ {
"Vigemus/iron.nvim", "Vigemus/iron.nvim",
ft = { "python" },
config = function() config = function()
local iron = require("iron.core") local iron = require("iron.core")
local view = require("iron.view") local view = require("iron.view")
@ -224,13 +222,13 @@ require("lazy").setup({
-- Iron doesn't set keymaps by default anymore. -- Iron doesn't set keymaps by default anymore.
-- You can set them here or manually add keymaps to the functions in iron.core -- You can set them here or manually add keymaps to the functions in iron.core
keymaps = { keymaps = {
visual_send = ";sc", visual_send = "<leader>sc",
send_file = ";sf", send_file = "<leader>sf",
send_line = ";sl", send_line = "<leader>sl",
cr = ";s<cr>", cr = "<leader>s<cr>",
interrupt = ";s<space>", interrupt = "<leader>s<space>",
exit = ";sq", exit = "<leader>sq",
clear = ";cl", clear = "<leader>cl",
}, },
-- If the highlight is on, you can change how it looks -- If the highlight is on, you can change how it looks
-- For the available options, check nvim_set_hl -- For the available options, check nvim_set_hl
@ -434,6 +432,7 @@ require("lazy").setup({
-- gopls = {}, -- gopls = {},
jdtls = {}, jdtls = {},
pyright = {}, pyright = {},
bashls = { dependencies = "shellcheck" },
rust_analyzer = { rust_analyzer = {
settings = { settings = {
files = { files = {
@ -483,6 +482,7 @@ require("lazy").setup({
"black", "black",
"isort", "isort",
"clang-format", "clang-format",
"beautysh",
}) })
require("mason-tool-installer").setup({ ensure_installed = ensure_installed }) require("mason-tool-installer").setup({ ensure_installed = ensure_installed })

Loading…
Cancel
Save