chore: [NVIM] updated nvim config with some stuff
has tmux line integrated
This commit is contained in:
parent
e99443160e
commit
e623bf4432
6 changed files with 27 additions and 46 deletions
|
@ -43,4 +43,7 @@ vim.g.jukit_shell_cmd = 'ipython3'
|
||||||
vim.g.jukit_terminal = 'nvimterm'
|
vim.g.jukit_terminal = 'nvimterm'
|
||||||
vim.g.jukit_show_prompt = 1
|
vim.g.jukit_show_prompt = 1
|
||||||
vim.g.jukit_pdf_viewer = 'zathura'
|
vim.g.jukit_pdf_viewer = 'zathura'
|
||||||
vim.g.jukit_mappings = 1
|
vim.g.jukit_mappings = 0
|
||||||
|
--Format Options
|
||||||
|
vim.opt.formatoptions:remove("ro")
|
||||||
|
|
||||||
|
|
|
@ -151,30 +151,17 @@ cmp.setup {
|
||||||
name = "nvim_lsp",
|
name = "nvim_lsp",
|
||||||
entry_filter = function(entry, context)
|
entry_filter = function(entry, context)
|
||||||
local kind = entry:get_kind()
|
local kind = entry:get_kind()
|
||||||
local line = context.cursor_line
|
vim.api.nvim_out_write(kind .. '\n')
|
||||||
local col = context.cursor.col
|
if kind == "Text" then return false end
|
||||||
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
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ name = 'orgmode' },
|
||||||
{ name = 'nvim_lua' },
|
{ name = 'nvim_lua' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = "vim-dadbod-completion" },
|
--{ name = "vim-dadbod-completion" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
-- Create new code cell below. Argument: Whether to create code cell (0) or markdown cell (1)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jco', ':call jukit#cells#create_below(0)<CR>', { noremap = true, silent = true})
|
vim.keymap.set('n', '<leader>jco', '<cmd>call jukit#cells#create_below(0)<CR>', opts)
|
||||||
-- Create new code cell above. Argument: Whether to create code cell (0) or markdown cell (1)
|
-- Create new code cell above. Argument: Whether to create code cell (0) or markdown cell (1)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jcO', ':call jukit#cells#create_above(0)<CR>', { noremap = true, silent = true})
|
vim.keymap.set('n', '<leader>jcO', '<cmd>call jukit#cells#create_above(0)<CR>', opts)
|
||||||
|
|
||||||
-- Create new text (markdown) cell below. Argument: Whether to create code cell (0) or markdown cell (1)
|
-- Create new text (markdown) cell below. Argument: Whether to create code cell (0) or markdown cell (1)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jct', ':call jukit#cells#create_below(1)<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jct', '<cmd>call jukit#cells#create_below(1)<CR>', opts)
|
||||||
-- Create new text (markdown) cell above. Argument: Whether to create code cell (0) or markdown cell (1)
|
-- Create new text (markdown) cell above. Argument: Whether to create code cell (0) or markdown cell (1)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jcT', ':call jukit#cells#create_above(1)<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jcT', '<cmd>call jukit#cells#create_above(1)<CR>', opts)
|
||||||
|
|
||||||
-- Deletes the current cell
|
-- Deletes the current cell
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jcd', ':call jukit#cells#delete()<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jcd', '<cmd>call jukit#cells#delete()<CR>', opts)
|
||||||
|
|
||||||
-- Send current section (argument: 0 indicates the current section)
|
-- Send current section (argument: 0 indicates the current section)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jcc', ':call jukit#send#section(0)<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jcc', '<cmd>call jukit#send#section(0)<CR>', opts)
|
||||||
|
|
||||||
-- Send all sections up to the current section
|
-- Send all sections up to the current section
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jcac', ':call jukit#send#until_current_section()<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jcac', '<cmd>call jukit#send#until_current_section()<CR>', opts)
|
||||||
|
|
||||||
-- Send all sections
|
-- Send all sections
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jca', ':call jukit#send#all()<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jca', '<cmd>call jukit#send#all()<CR>', opts)
|
||||||
|
|
||||||
-- Open an output split
|
-- Open an output split
|
||||||
vim.api.nvim_set_keymap('n', '<leader>jos', ':call jukit#splits#output()<CR>', { noremap = true, silent = true })
|
vim.keymap.set('n', '<leader>jos', '<cmd>call jukit#splits#output()<CR>', opts)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,10 @@ lazy.setup({
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'vimpostor/vim-tpipeline',
|
||||||
|
|
||||||
|
|
||||||
--Python notebooks
|
--Python notebooks
|
||||||
{
|
{
|
||||||
'luk400/vim-jukit',
|
'luk400/vim-jukit',
|
||||||
|
@ -121,21 +125,6 @@ lazy.setup({
|
||||||
end
|
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",
|
"folke/todo-comments.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
|
|
@ -4,7 +4,8 @@ local null_ls = require("null-ls")
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
null_ls.builtins.formatting.rustfmt,
|
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.formatting.gofmt,
|
||||||
null_ls.builtins.code_actions.shellcheck,
|
null_ls.builtins.code_actions.shellcheck,
|
||||||
null_ls.builtins.formatting.beautysh,
|
null_ls.builtins.formatting.beautysh,
|
||||||
|
|
2
.gitconfig-gh
Normal file
2
.gitconfig-gh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[user]
|
||||||
|
name = afonsofrancof
|
Loading…
Add table
Reference in a new issue