From 802de8b08887eaca5dea253246c6c5097a1f3c31 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Fri, 15 Mar 2024 22:06:23 -0400 Subject: [PATCH] Fix iron.nvim config --- ftplugin/markdown.vim | 11 +---------- init.lua | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index d094a71..9777cec 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -1,4 +1,3 @@ -inoremap /<++>"_c4l set spell spellfile="~/.config/nvim/spell/wordlist" let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'fortran'] "set conceallevel=2 @@ -9,14 +8,6 @@ map : w % AsyncRun md2pdf "%" map : w % AsyncRun md2beamer "%" map : w % AsyncRun md2docx % map : !zathura %:r.pdf & -inoremap ;i ** <++>5hi -inoremap ;b **** <++>6hi -inoremap ;l [](<++>)6hi -inoremap ;I ![](<++>)6hi -inoremap ;pc ``````O -inoremap ;cu - [ ] -inoremap ;cc - [x] - -set tw=200 +set tw=1000 set colorcolumn= diff --git a/init.lua b/init.lua index 9f63798..10d3cb0 100644 --- a/init.lua +++ b/init.lua @@ -14,9 +14,6 @@ vim.opt.mouse = "" -- Don't show the mode, since it's already in status line vim.opt.showmode = false --- Enable break indent -vim.opt.breakindent = true - -- Case-insensitive searching UNLESS \C or capital in search vim.opt.ignorecase = true vim.opt.smartcase = true @@ -201,6 +198,7 @@ require("lazy").setup({ "tpope/vim-sleuth", { "Vigemus/iron.nvim", + ft = { "python" }, config = function() local iron = require("iron.core") local view = require("iron.view") @@ -224,13 +222,13 @@ require("lazy").setup({ -- Iron doesn't set keymaps by default anymore. -- You can set them here or manually add keymaps to the functions in iron.core keymaps = { - visual_send = ";sc", - send_file = ";sf", - send_line = ";sl", - cr = ";s", - interrupt = ";s", - exit = ";sq", - clear = ";cl", + visual_send = "sc", + send_file = "sf", + send_line = "sl", + cr = "s", + interrupt = "s", + exit = "sq", + clear = "cl", }, -- If the highlight is on, you can change how it looks -- For the available options, check nvim_set_hl @@ -434,6 +432,7 @@ require("lazy").setup({ -- gopls = {}, jdtls = {}, pyright = {}, + bashls = { dependencies = "shellcheck" }, rust_analyzer = { settings = { files = { @@ -483,6 +482,7 @@ require("lazy").setup({ "black", "isort", "clang-format", + "beautysh", }) require("mason-tool-installer").setup({ ensure_installed = ensure_installed })