[NVIM] Added orgmode and change iskeyword definition
This commit is contained in:
parent
2e2db2ab1d
commit
d06e5bdbad
7 changed files with 133 additions and 7 deletions
|
@ -11,6 +11,7 @@
|
|||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"copilot.lua": { "branch": "master", "commit": "858bbfa6fa81c88fb1f64107d7981f1658619e0a" },
|
||||
"distant.nvim": { "branch": "v0.3", "commit": "998724f62386c8022a4e6c885f4509cf9477451a" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "94b0d24483d56f3777ee0c8dc51675f21709318c" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "a4a7edfea37e557dbff5509ee374ffb57051bba9" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" },
|
||||
|
@ -22,6 +23,7 @@
|
|||
"mason-lspconfig.nvim": { "branch": "main", "commit": "56e435e09f8729af2d41973e81a0db440f8fe9c9" },
|
||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "9e82ded0515186edd4f69e4ce6b1a5f1b55b47e9" },
|
||||
"mason.nvim": { "branch": "main", "commit": "a09da6ac634926a299dd439da08bdb547a8ca011" },
|
||||
"neovim": { "branch": "main", "commit": "c6d53a99d4c5c50fd10d5091208491b25130486b" },
|
||||
"nerdy.nvim": { "branch": "main", "commit": "548437ebcea9106156e7ea3a5612ee6444a1aba4" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "e7382de51b4cf629e56f1fa18192e716e5ba8145" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "9fd41181693dd4106b3e414a822bb6569924de81" },
|
||||
|
@ -36,14 +38,17 @@
|
|||
"nvim-treesitter-context": { "branch": "master", "commit": "652ec514d6ba8bc4a3c2de76c855fe668e2c7196" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "43aa2ddf476012a2155f5f969ee55ab17174da7a" },
|
||||
"oil.nvim": { "branch": "master", "commit": "523b61430cb7365f8f86609c2ea60e48456bac63" },
|
||||
"orgmode": { "branch": "master", "commit": "ab045e3084d5987e8939d25d69b09baaf762278c" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" },
|
||||
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" },
|
||||
"themery.nvim": { "branch": "main", "commit": "1005a58801276d29c4b1e11244cf7631250f9143" },
|
||||
"tla.nvim": { "branch": "master", "commit": "e419c75e805ab6d9967c7325bf35734c372d3d4b" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
|
||||
"typst.vim": { "branch": "main", "commit": "308e7737d09de8c1100320ddc6bc270615ae791a" },
|
||||
"undotree": { "branch": "master", "commit": "36ff7abb6b60980338344982ad4cdf03f7961ecd" },
|
||||
"vim-alloy": { "branch": "master", "commit": "5bd57c4890be39e221dd3e1f6735457dce454bbd" },
|
||||
"vim-jukit": { "branch": "master", "commit": "73214c9a8abc4b6aa7a6266b5bc2ddbf8b3e3c00" },
|
||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
||||
"vimtex": { "branch": "master", "commit": "6179414f2eb3db977a513b7b19c23e7e62a0f388" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
|
||||
|
|
|
@ -31,6 +31,7 @@ information = { "underline" },
|
|||
},
|
||||
},
|
||||
})
|
||||
vim.opt.background = "light"
|
||||
|
||||
|
||||
vim.cmd("colorscheme catppuccin-latte")
|
||||
|
|
|
@ -12,6 +12,9 @@ vim.opt.smartindent = true
|
|||
--Move lines
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
--Change word definition
|
||||
vim.opt.iskeyword:append("-")
|
||||
vim.opt.iskeyword:append("_")
|
||||
--Remove Wrap
|
||||
vim.opt.wrap = false
|
||||
--Not let cursor go bellow 10 chars.
|
||||
|
@ -35,6 +38,6 @@ vim.g.jukit_convert_overwrite_default = 1
|
|||
vim.g.jukit_convert_open_default = 0
|
||||
vim.g.jukit_shell_cmd = 'ipython3'
|
||||
vim.g.jukit_terminal = 'nvimterm'
|
||||
vim.g.jukit_inline_plotting=1
|
||||
vim.g.jukit_show_prompt = 1
|
||||
vim.g.jukit_pdf_viewer = 'zathura'
|
||||
vim.g.jukit_mappings = 1
|
||||
|
|
26
.config/nvim/lua/plugins/jukit.lua
Normal file
26
.config/nvim/lua/plugins/jukit.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
-- 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})
|
||||
-- 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})
|
||||
|
||||
-- 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 })
|
||||
-- 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 })
|
||||
|
||||
-- Deletes the current cell
|
||||
vim.api.nvim_set_keymap('n', '<leader>jcd', ':call jukit#cells#delete()<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- 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 })
|
||||
|
||||
-- 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 })
|
||||
|
||||
-- Send all sections
|
||||
vim.api.nvim_set_keymap('n', '<leader>jca', ':call jukit#send#all()<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Open an output split
|
||||
vim.api.nvim_set_keymap('n', '<leader>jos', ':call jukit#splits#output()<CR>', { noremap = true, silent = true })
|
||||
|
||||
|
|
@ -17,8 +17,63 @@ lazy.setup({
|
|||
lazy = false,
|
||||
priority = 1000,
|
||||
},
|
||||
|
||||
{ "ellisonleao/gruvbox.nvim", priority = 1000 },
|
||||
|
||||
'rose-pine/neovim',
|
||||
-------------------------------------------------------MFP---------------------------------
|
||||
{
|
||||
'susliko/tla.nvim',
|
||||
config = function()
|
||||
require("tla").setup()
|
||||
end
|
||||
},
|
||||
-------------------------------------------------------QOL---------------------------------
|
||||
|
||||
{
|
||||
'chipsenkbeil/distant.nvim',
|
||||
branch = 'v0.3',
|
||||
config = function()
|
||||
require('distant'):setup({
|
||||
servers = {
|
||||
['10.8.0.9'] = {
|
||||
launch = {
|
||||
default = {
|
||||
username = 'afonso',
|
||||
args = '--port 8080 --shutdown lonely=1'
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
},
|
||||
--Python notebooks
|
||||
{
|
||||
'luk400/vim-jukit',
|
||||
config = function()
|
||||
require 'plugins.jukit'
|
||||
end
|
||||
},
|
||||
--org mode
|
||||
{
|
||||
'nvim-orgmode/orgmode',
|
||||
dependencies = {
|
||||
{ 'nvim-treesitter/nvim-treesitter', lazy = true },
|
||||
},
|
||||
event = 'VeryLazy',
|
||||
config = function()
|
||||
-- Load treesitter grammar for org
|
||||
require('orgmode').setup_ts_grammar()
|
||||
|
||||
-- Setup orgmode
|
||||
require('orgmode').setup({
|
||||
org_agenda_files = '~/orgfiles/**/*',
|
||||
org_default_notes_file = '~/orgfiles/refile.org',
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
|
|
|
@ -48,6 +48,7 @@ require("themery").setup({
|
|||
},
|
||||
},
|
||||
})
|
||||
vim.opt.background = "dark"
|
||||
]]
|
||||
},
|
||||
{
|
||||
|
@ -85,6 +86,37 @@ require("themery").setup({
|
|||
},
|
||||
},
|
||||
})
|
||||
vim.opt.background = "light"
|
||||
]]
|
||||
},
|
||||
{
|
||||
name = "Rosé Pine",
|
||||
colorscheme = "rose-pine",
|
||||
before = [[
|
||||
require('rose-pine').setup({
|
||||
variant = "main"
|
||||
})
|
||||
vim.opt.background = "dark"
|
||||
]]
|
||||
},
|
||||
{
|
||||
name = "Rosé Pine Moon",
|
||||
colorscheme = "rose-pine",
|
||||
before = [[
|
||||
require('rose-pine').setup({
|
||||
variant = "moon"
|
||||
})
|
||||
vim.opt.background = "dark"
|
||||
]]
|
||||
},
|
||||
{
|
||||
name = "Rosé Pine Dawn",
|
||||
colorscheme = "rose-pine",
|
||||
before = [[
|
||||
require('rose-pine').setup({
|
||||
variant = "dawn"
|
||||
})
|
||||
vim.opt.background = "light"
|
||||
]]
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,19 +1,23 @@
|
|||
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
||||
|
||||
require('nvim-treesitter.install').update({ with_sync = true })
|
||||
|
||||
|
||||
if not present then
|
||||
return
|
||||
end
|
||||
|
||||
require('nvim-treesitter.install').update({ with_sync = true })
|
||||
local present, orgmode = pcall(require, "orgmode")
|
||||
if present then
|
||||
require('orgmode').setup_ts_grammar()
|
||||
end
|
||||
|
||||
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "c", "lua", "haskell", "rust", "markdown", "org"},
|
||||
ensure_installed = { "c", "lua", "haskell", "rust", "markdown", "org" },
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = true,
|
||||
additional_vim_regex_highlighting = {"org"},
|
||||
additional_vim_regex_highlighting = { "org" },
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
|
|
Loading…
Reference in a new issue