diff --git a/.config/nvim/lua/core/variables.lua b/.config/nvim/lua/core/variables.lua index 83e4810..b0669b5 100644 --- a/.config/nvim/lua/core/variables.lua +++ b/.config/nvim/lua/core/variables.lua @@ -43,4 +43,7 @@ vim.g.jukit_shell_cmd = 'ipython3' vim.g.jukit_terminal = 'nvimterm' vim.g.jukit_show_prompt = 1 vim.g.jukit_pdf_viewer = 'zathura' -vim.g.jukit_mappings = 1 +vim.g.jukit_mappings = 0 +--Format Options +vim.opt.formatoptions:remove("ro") + diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 5ad0408..dee1733 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -151,30 +151,17 @@ cmp.setup { name = "nvim_lsp", entry_filter = function(entry, context) local kind = entry:get_kind() - local line = context.cursor_line - local col = context.cursor.col - local char_before_cursor = string.sub(line, col - 1, col - 1) - - if char_before_cursor == "." then - if kind == 2 or kind == 5 then - return true - else - return false - end - elseif string.match(line, "^%s*%w*$") then - if kind == 3 or kind == 6 then - return true - else - return false - end - end + vim.api.nvim_out_write(kind .. '\n') + if kind == "Text" then return false end return true end }, + + { name = 'orgmode' }, { name = 'nvim_lua' }, { name = 'luasnip' }, - { name = "vim-dadbod-completion" }, + --{ name = "vim-dadbod-completion" }, { name = "path" }, }, { diff --git a/.config/nvim/lua/plugins/jukit.lua b/.config/nvim/lua/plugins/jukit.lua index 7118fcc..49bcd25 100644 --- a/.config/nvim/lua/plugins/jukit.lua +++ b/.config/nvim/lua/plugins/jukit.lua @@ -1,26 +1,25 @@ +local opts = { noremap = true, silent = true, buffer = true } -- Create new code cell below. Argument: Whether to create code cell (0) or markdown cell (1) -vim.api.nvim_set_keymap('n', 'jco', ':call jukit#cells#create_below(0)', { noremap = true, silent = true}) +vim.keymap.set('n', 'jco', 'call jukit#cells#create_below(0)', opts) -- Create new code cell above. Argument: Whether to create code cell (0) or markdown cell (1) -vim.api.nvim_set_keymap('n', 'jcO', ':call jukit#cells#create_above(0)', { noremap = true, silent = true}) +vim.keymap.set('n', 'jcO', 'call jukit#cells#create_above(0)', opts) -- Create new text (markdown) cell below. Argument: Whether to create code cell (0) or markdown cell (1) -vim.api.nvim_set_keymap('n', 'jct', ':call jukit#cells#create_below(1)', { noremap = true, silent = true }) +vim.keymap.set('n', 'jct', 'call jukit#cells#create_below(1)', opts) -- Create new text (markdown) cell above. Argument: Whether to create code cell (0) or markdown cell (1) -vim.api.nvim_set_keymap('n', 'jcT', ':call jukit#cells#create_above(1)', { noremap = true, silent = true }) +vim.keymap.set('n', 'jcT', 'call jukit#cells#create_above(1)', opts) -- Deletes the current cell -vim.api.nvim_set_keymap('n', 'jcd', ':call jukit#cells#delete()', { noremap = true, silent = true }) +vim.keymap.set('n', 'jcd', 'call jukit#cells#delete()', opts) -- Send current section (argument: 0 indicates the current section) -vim.api.nvim_set_keymap('n', 'jcc', ':call jukit#send#section(0)', { noremap = true, silent = true }) +vim.keymap.set('n', 'jcc', 'call jukit#send#section(0)', opts) -- Send all sections up to the current section -vim.api.nvim_set_keymap('n', 'jcac', ':call jukit#send#until_current_section()', { noremap = true, silent = true }) +vim.keymap.set('n', 'jcac', 'call jukit#send#until_current_section()', opts) -- Send all sections -vim.api.nvim_set_keymap('n', 'jca', ':call jukit#send#all()', { noremap = true, silent = true }) +vim.keymap.set('n', 'jca', 'call jukit#send#all()', opts) -- Open an output split -vim.api.nvim_set_keymap('n', 'jos', ':call jukit#splits#output()', { noremap = true, silent = true }) - - +vim.keymap.set('n', 'jos', 'call jukit#splits#output()', opts) diff --git a/.config/nvim/lua/plugins/lazy.lua b/.config/nvim/lua/plugins/lazy.lua index e55c0ee..9e3c571 100644 --- a/.config/nvim/lua/plugins/lazy.lua +++ b/.config/nvim/lua/plugins/lazy.lua @@ -54,6 +54,10 @@ lazy.setup({ }) end }, + + 'vimpostor/vim-tpipeline', + + --Python notebooks { 'luk400/vim-jukit', @@ -121,21 +125,6 @@ lazy.setup({ end }, - { - - "folke/which-key.nvim", - event = "VeryLazy", - init = function() - vim.o.timeout = true - vim.o.timeoutlen = 300 - end, - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } - }, - { "folke/todo-comments.nvim", event = "VeryLazy", diff --git a/.config/nvim/lua/plugins/none-ls.lua b/.config/nvim/lua/plugins/none-ls.lua index 6980746..837ccac 100644 --- a/.config/nvim/lua/plugins/none-ls.lua +++ b/.config/nvim/lua/plugins/none-ls.lua @@ -4,7 +4,8 @@ local null_ls = require("null-ls") null_ls.setup({ sources = { null_ls.builtins.formatting.rustfmt, - null_ls.builtins.formatting.blue, + null_ls.builtins.formatting.black, + null_ls.builtins.diagnostics.flake8, null_ls.builtins.formatting.gofmt, null_ls.builtins.code_actions.shellcheck, null_ls.builtins.formatting.beautysh, diff --git a/.gitconfig-gh b/.gitconfig-gh new file mode 100644 index 0000000..8f3993e --- /dev/null +++ b/.gitconfig-gh @@ -0,0 +1,2 @@ +[user] + name = afonsofrancof