Compare commits

..

59 Commits

Author SHA1 Message Date
caeeb528b3 Remove notice from GitHub repo's README
All checks were successful
Luacheck / Luacheck (push) Successful in 8s
StyLua / StyLuacheck (push) Successful in 13s
2024-01-19 02:06:55 +01:00
Jirka
6fd3d328a5
fix: Remove obsolete instructions
All checks were successful
Luacheck / Luacheck (push) Successful in 7s
StyLua / StyLuacheck (push) Successful in 10s
2024-01-14 14:05:32 +01:00
5e4b8d8b9b
Archive
Signed-off-by: Jiří Štefka <jiri@stefka.eu>
2024-01-14 14:01:25 +01:00
267a6f1929
feat!: move Tagbar and Trouble to LSP menu from Find menu
All checks were successful
Luacheck / Luacheck (push) Successful in 7s
StyLua / StyLuacheck (push) Successful in 11s
2023-12-03 02:07:54 +01:00
8eaf4288da
fix(issue_templates): identation
All checks were successful
Luacheck / Luacheck (push) Successful in 6s
StyLua / StyLuacheck (push) Successful in 7s
2023-10-04 10:27:39 +02:00
2dc17c2851
feat(issue_templates): add basic issue templates
All checks were successful
Luacheck / Luacheck (push) Successful in 7s
StyLua / StyLuacheck (push) Successful in 8s
2023-10-04 10:25:57 +02:00
ebe528abfa
fix(style/format): further code formating
All checks were successful
Luacheck / Luacheck (push) Successful in 7s
StyLua / StyLuacheck (push) Successful in 9s
2023-10-04 09:20:52 +02:00
9706834ddb
fix(style/format): formated the code
Some checks failed
Luacheck / Luacheck (push) Failing after 7s
StyLua / StyLuacheck (push) Successful in 10s
2023-10-04 09:14:10 +02:00
cb397b7f92
feat(luacheck): add .luacheckrc
Some checks failed
Luacheck / Luacheck (push) Failing after 7s
StyLua / StyLuacheck (push) Successful in 8s
to add variables that are defined in AstroNvim
2023-10-04 09:09:56 +02:00
936f405764 fix(cicd): manually setup actions as GH actions don't work on this image (#2)
Some checks failed
Luacheck / Luacheck (push) Failing after 7s
StyLua / StyLuacheck (push) Successful in 7s
Reviewed-on: #2
2023-10-04 08:57:36 +02:00
458af12abf
fix(ci/cd): Move to full ubuntu image
Some checks failed
Luacheck / Luacheck (push) Failing after 4s
StyLua / StyLuacheck (push) Failing after 4s
2023-10-04 08:36:40 +02:00
7f352b9733
fix(ci/cd): rename .github to .gitea
Some checks failed
Luacheck / Luacheck (push) Failing after 6s
StyLua / StyLuacheck (push) Failing after 4s
2023-10-04 08:31:44 +02:00
c02b4ee543
feat(ci/cd): add luacheck and stylua 2023-10-04 08:30:25 +02:00
96ff1d7933
fix(editorconfig): remove editorconfig as it's integrated in NeoVim now
also move open-browser as a dependency of markdown-preview
2023-09-30 02:22:37 +02:00
8113956657
fix(presence.nvim): move to my patched version to make flatpak work 2023-09-26 17:08:51 +02:00
de11ec20e1
feat(JupyterNotebooks): add jupynium 2023-09-25 22:57:43 +02:00
fb861daa38
feat(copilot)!: move from copilot.vim to copilot.lua and copilot-cmp
Breaking change: Tab completion no longer does anything - it just adds a
tab as it should
- To use completion use CTRL + J and CTRL + K
2023-09-22 21:53:13 +02:00
730d24f51d
fix(OpenBrowser): Typo in lazy.nvim commands config 2023-09-19 19:38:37 +02:00
8de63b5f59 feat(plugins): Add LiveServer plugin 2023-09-02 23:08:34 +02:00
1d70d57a24 Fix Todo Comments 2023-07-06 00:11:30 +02:00
b013ab780c Add icons, run stylua 2023-03-16 21:59:56 +01:00
a8b3645148 Use stylua 2023-03-14 19:02:50 +01:00
84bf31cb41 Add vim-startuptime 2023-03-14 08:58:54 +01:00
2dcc50a1f0 Cleanup 2023-03-14 04:58:51 +01:00
dabb2f969e Switch node's launch.js to dln keybind 2023-03-13 07:55:09 +01:00
39e5545442 Fall back to old launch.json loading format 2023-03-13 03:52:41 +01:00
0a67458d17 Add support for tasks.json, load all launch.json configs 2023-03-13 03:45:50 +01:00
71445b6768 Better code readability 2023-03-10 20:18:40 +01:00
04858218cd Remove CarbonNow for normal mode, change background to none
Removed it as it really doesn't serve a purpose in normal mode
  - On a bit larger files you'll get an error that the url is too long
  - Plus it's not that hard to do `gg` + `v` + `G` + `$` to select
    everything
2023-03-10 20:08:46 +01:00
ab227484e7 Lazyload copilot.vim on opening a file 2023-03-10 19:56:38 +01:00
6ebc8353a6 Fix Trouble, Tagbar menu name 2023-03-10 19:49:27 +01:00
8d6d4c1894 Change mappings, better lazy loading 2023-03-10 19:08:40 +01:00
74f9b467fa Remove unnecessary/broken config 2023-03-10 11:16:21 +01:00
442a587137 Add editorconfig-vim 2023-03-10 10:57:49 +01:00
0a5bba771f Switch to folke/tokyonight.nvim theme 2023-03-10 10:43:50 +01:00
221bb66d75 Redo keybinds, add key group names, fix CarbonNow 2023-03-10 08:00:02 +01:00
62aa4d949c Delete a forgotten line in the Alpha banner 2023-03-10 07:19:32 +01:00
265e0a0ece Customize header 2023-03-10 03:30:05 +01:00
7119e95235 Rewrite for AstroNvim v3 2023-03-10 02:39:11 +01:00
c21956e5d1 Add CarbonNow plugin, add comments for some plugins
Add a basic neotest config as a comment
2023-02-22 03:59:49 +01:00
53d1db8abc Add carbon-now.nvim for sharing code 2023-02-22 03:59:49 +01:00
7235e49032 Removed asm config for mason-nvim-dap.nvim
Config added upstream
2023-02-17 23:09:13 +01:00
5cb8ed43b4 Add a dap configuration for assembly (.asm files) 2023-02-17 06:15:05 +01:00
2f8194437a Alpha.nvim has been fixed upstream 2023-02-14 11:31:22 +01:00
c2b4401da1 Fix Alpha dashboard (I swear it's fixed this time) 2023-02-10 03:05:07 +01:00
b8906d8557 Fix broken Alpha dashboard config 2023-02-10 02:37:58 +01:00
93e108e048 Fix 2023-02-10 02:37:34 +01:00
d02d27a412 Add a missing , 2023-02-10 02:30:11 +01:00
278db3321a Hold heirline plugin version
Heirline had a breaking change

Once it's resolved in AstroNvim I'll revert this change
2023-01-19 11:44:15 +01:00
96a873f0a0 Quick update to README 2022-12-15 00:23:27 +01:00
ad4722b3c9 Remove vimspector, rebind nvim-dap to vimspector mappings (cca)
Remove unnecessary commented out code
2022-12-15 00:14:15 +01:00
7a5774a71c Fix discord presence 2022-12-05 01:04:36 +01:00
138b46f8a0 Add more plugins 2022-12-05 00:41:25 +01:00
d9d4d1169b Remove nonsense from config file, fix cmp error 2022-11-29 17:05:20 +01:00
3c26384e30 Revert "Merge branch 'merlin' into main"
This reverts commit b0f1dd9656085e6a359178137a0dc7f4de805a10, reversing
changes made to e6d978fc38fd74b5bfa54d1057f0579fc146c615.
2022-10-30 00:09:36 +02:00
b0f1dd9656
Merge branch 'merlin' into main 2022-10-30 00:07:19 +02:00
e6d978fc38 Make copilot work with cmp 2022-10-29 23:55:17 +02:00
644dab6ed3 Update README for merlin 2022-10-25 21:38:59 +02:00
96bce82d7b Basic setup for merlin 2022-10-25 21:28:05 +02:00
8 changed files with 773 additions and 487 deletions

@ -0,0 +1,111 @@
name: Issue report
description: Report any errors, bugs, or unexpected behaviors related to presence.nvim
title: "[Bug]: "
labels: [bug]
assignees:
- jiriks74
body:
- type: markdown
attributes:
value: |
Before reporting, please search [existing issues](https://gitea.stefka.eu/jiriks74/astronvim_config/issues/) and make sure that you are on the latest commit
- type: dropdown
attributes:
label: "Are you on the latest version of the commit?"
description: "If no, please backup your current config and update."
options:
- "Yes"
- "No"
validations:
required: true
- type: input
attributes:
label: "Which commit are you on?"
description: "To thet the commit hash run `git rev-parse --short HEAD` in the config directory (`~/.config/nvim/lua/user`)"
validations:
required: true
- type: dropdown
attributes:
label: "Have you modified the config?"
description: "If so, backup your current config and try the default one before reporting."
options:
- "Yes"
- "No"
validations:
required: true
- type: textarea
attributes:
label: "Description"
description: "A short summary of the error, bug, or unexpected behavior you're facing."
validations:
required: true
- type: textarea
attributes:
label: "Neovim version"
description: "Output of `nvim --version`"
render: markdown
placeholder: |
NVIM: v0.6.0-dev+209-g0603eba6e
Build type: Release
LuaJIT: 2.1.0-beta3
value: |
NVIM:
Build type:
LuaJIT:
validations:
required: true
- type: input
attributes:
label: "OS information"
placeholder: "Ubuntu 22.04"
validations:
required: true
- type: textarea
attributes:
label: "Steps to reproduce"
description: "Steps to reproduce the issue with your config(s) if applicable."
placeholder: |
1. Setup presence.nvim with `require("presence"):setup({...})`
2. Run Neovim with `nvim test.txt`
3. ...
validations:
required: true
- type: textarea
attributes:
label: "Logs"
description: "The full list of `:messages` from one or more `nvim` instances.\nPlease insert the logs into code blocks."
placeholder: |
<details>
```
[presence.nvim] Using runtime path: /run/user/1000
[presence.nvim] Using Discord IPC socket path: /run/user/1000/discord-ipc-0
[presence.nvim] Checking Discord IPC socket at /run/user/1000/discord-ipc-0...
```
</details>
value: |
<details>
```
```
</details>
validations:
required: true
- type: textarea
attributes:
label: "Aditional info"
description: "If you'd like to add anything else put it here."
validations:
required: false

@ -0,0 +1,34 @@
name: Feature request
description: Report any errors, bugs, or unexpected behaviors related to presence.nvim
title: "[FEAT]: "
labels: [enhancement]
assignees:
- jiriks74
body:
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when...
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: false
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false

@ -0,0 +1,16 @@
name: Luacheck
on: [push, pull_request]
jobs:
Luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Luacheck
run: |
apt update && apt install lua-check -y
- name: Luacheck linter
run: |
luacheck .

@ -0,0 +1,12 @@
name: StyLua
on: [push, pull_request]
jobs:
StyLuacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: StyLua check
run: |
npx @johnnymorganz/stylua-bin .

9
.luacheckrc Normal file

@ -0,0 +1,9 @@
std = {
globals = {
"vim",
"require",
},
read_globals = {
"fallback",
},
}

@ -15,39 +15,23 @@
```bash ```bash
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
nvim +PackerSync
``` ```
- Clone my config into `~/.config/nvim/lua/user` - Clone my config into `~/.config/nvim/lua/user`
- For NeoVim >= 8.0
```bash ```bash
git clone https://github.com/jiriks74/astronvim_config ~/.config/nvim/lua/user git clone https://github.com/jiriks74/astronvim_config ~/.config/nvim/lua/user
``` ```
- For NeoVim < 8.0 use `neovim7.2` branch
```bash
git clone -b neovim7.2 https://github.com/jiriks74/astronvim_config ~/.config/nvim/lua/user
```
- Open nvim and run `:PackerSync`
```bash
nvim +PackerSync
```
## Useful info ## Useful info
- Folding with treesitter - Folding with treesitter
- To get folding for your language, you need to run - To get folding for your language, you need to run
`:TSInstall <language>` (eg. `TSInstall cpp` to get C++ folding) `:TSInstall <language>` (eg. `TSInstall cpp` to get C++ folding)
- Install language servers - Install language servers
- Use `Space+p+I` keybind to open install menu. - Use `Space+p+m` keybind to open install menu.
- To install package under the cursor, press `i` - To install package under the cursor, press `i`
- To uninstall package under the cursor press `X` - To uninstall package under the cursor press `X`
- Debugging
- See `vimspector` under [`Extra plugin included`](#extra-plugins-included)
- LaTeX - LaTeX
- To use `vimtex` plugin, you need to have LaTeX installed - To use `vimtex` plugin, you need to have LaTeX installed
- [`texlive-most`](https://wiki.archlinux.org/title/TeX_Live#Installation) package on ArchLinux - [`texlive-most`](https://wiki.archlinux.org/title/TeX_Live#Installation) package on ArchLinux
@ -59,14 +43,6 @@ nvim +PackerSync
## Extra plugins included ## Extra plugins included
- [vimspector](https://github.com/puremourning/vimspector)
- Simple plugin for debugging
- You need have to have `neovim` python module installed
```bash
pip3 install neovim
```
- You have to create a file with `Launch` config - see the [plugin repository](https://github.com/puremourning/vimspector) - You have to create a file with `Launch` config - see the [plugin repository](https://github.com/puremourning/vimspector)
- [vim-pio](https://github.com/jiriks74/vim-pio) - [vim-pio](https://github.com/jiriks74/vim-pio)
- PlatformIO vim plugin - PlatformIO vim plugin
@ -94,37 +70,6 @@ nvim +PackerSync
| CTRL+e | ["\<C-e\>"] | Copilot accept | | CTRL+e | ["\<C-e\>"] | Copilot accept |
| CTRL+s | ["\<C-s\>"] | Toggle autosave | | CTRL+s | ["\<C-s\>"] | Toggle autosave |
### Mappings for vimspector (debugging)
| Shortcut | Vim keybind | Description |
|-------------|-------------------|--------------------|
| Space+d+d | ["\<leader\>dd"] | Launch |
| Space+d+S | ["\<leader\>dS"] | Stop |
| Space+d+c | ["\<leader\>dc"] | Continue |
| Space+d+p | ["\<leader\>dp"] | Pause |
| Space+d+e | ["\<leader\>de"] | Reset |
| Space+d+r | ["\<leader\>dr"] | Restart |
| Space+d+R | ["\<leader\>dR"] | Run to cursor |
| Space+d+C | ["\<leader\>dC"] | Go to current line |
| Space+d+P | ["\<leader\>dP"] | Move cursor to the program counter in current frame |
| | Breakpoints | |
| Space+d+b+t | ["\<leader\>dbt"] | Toggle breakpoint |
| Space+d+b+l | ["\<leader\>dbl"] | List breakpoints |
| Space+d+b+c | ["\<leader\>dbc"] | Clear breakpoints |
| Space+d+b+C | ["\<leader\>dbC"] | Toggle CBreakpoint or LogPoint on current line |
| Space+d+b+f | ["\<leader\>dbf"] | Add a function breakpoint for expression under cursor |
| Space+d+b+n | ["\<leader\>dbn"] | Jump to next breakpoint |
| Space+d+b+p | ["\<leader\>dbp"] | Jump to previous breakpoint |
| | Step keybinds | |
| Space+d+s+s | ["\<leader\>dss"] | Step over |
| Space+d+s+i | ["\<leader\>dsi"] | Step into |
| Space+d+s+o | ["\<leader\>dso"] | Step out |
| | Frame keybinds | |
| Space+d+f+u | ["\<leader\>dfu"] | Up frame |
| Space+d+f+d | ["\<leader\>dfd"] | Down frame |
There are also some [VSCode like keybinds setup by the plugin](https://github.com/puremourning/vimspector#visual-studio--vscode)
### Mappings for markdown preview ### Mappings for markdown preview
| Shortcut | Vim keybind | Description | | Shortcut | Vim keybind | Description |
@ -137,6 +82,8 @@ There are also some [VSCode like keybinds setup by the plugin](https://github.co
## TODO ## TODO
- [ ] Nvim-DAP
- Modified the default AstroNvim config
- [ ] [Mappings for `vimtex`](#mappings-for-vimtex) - [ ] [Mappings for `vimtex`](#mappings-for-vimtex)
- [ ] Better section for `vim-pio` - [ ] Better section for `vim-pio`
- [ ] Add section for setting up debugging - [ ] Add section for setting up debugging
@ -146,7 +93,6 @@ There are also some [VSCode like keybinds setup by the plugin](https://github.co
- [ ] Better [`README.md`](https://github.com/jiriks74/astronvim_config/blob/neovim7.2/README.md) - [ ] Better [`README.md`](https://github.com/jiriks74/astronvim_config/blob/neovim7.2/README.md)
for [`neovim7.2`](https://github.com/jiriks74/astronvim_config/tree/neovim7.2) branch for [`neovim7.2`](https://github.com/jiriks74/astronvim_config/tree/neovim7.2) branch
- [ ] Add section redirecting to [`neovim72`](https://github.com/jiriks74/astronvim_config/tree/neovim7.2) - [ ] Add section redirecting to [`neovim72`](https://github.com/jiriks74/astronvim_config/tree/neovim7.2)
branch's [`README.md`](https://github.com/jiriks74/astronvim_config/blob/neovim7.2/README.md) it user has Neovim < 8.0 branch's [`README.md`](https://github.com/jiriks74/astronvim_config/blob/neovim7.2/README.md) if user has Neovim < 8.0
- [ ] Add `.vimspector.json` template
- [ ] Setting up simple wiki? - [ ] Setting up simple wiki?
- [ ] Add section for ["weirongxu/plantuml-previewer.vim"](https://github.com/weirongxu/plantuml-previewer.vim) - [ ] Add section for ["weirongxu/plantuml-previewer.vim"](https://github.com/weirongxu/plantuml-previewer.vim)

919
init.lua

File diff suppressed because it is too large Load Diff

@ -1,97 +0,0 @@
local kind_icons = {
NONE = "",
Array = "",
Boolean = "",
Class = "",
Constructor = "",
Key = "",
Namespace = "",
Null = "NULL",
Number = "#",
Object = "⦿",
Package = "",
Property = "",
Reference = "",
Snippet = "",
String = "𝓐",
TypeParameter = "",
Unit = "",
Text = "",
Method = "",
Function = "",
Field = "",
Variable = "",
Interface = "",
Module = "",
Value = "",
Enum = "",
Keyword = "",
Color = "",
File = "",
Folder = "",
EnumMember = "",
Constant = "",
Struct = "",
Event = "",
Operator = "",
Copilot = "",
}
local cmp = require("cmp")
-- local has_words_before = function()
-- if vim.api.nvim_buf_get_option(0, "buftype") == "prompt" then return false end
-- local line, col = unpack(vim.api.nvim_win_get_cursor(0))
-- return col ~= 0 and vim.api.nvim_buf_get_text(0, line - 1, 0, line - 1, col, {})[1]:match("^%s*$") == nil
-- end
return {
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(_, vim_item)
vim_item.kind = string.format("%s", kind_icons[vim_item.kind])
return vim_item
end,
},
-- completion = {
-- keyword_length = 0,
-- },
-- mapping = {
-- ["<Tab>"] = vim.schedule_wrap(function(fallback)
-- if cmp.visible() and has_words_before() then
-- cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })
-- else
-- fallback()
-- end
-- end),
-- ['<Tab>'] = cmp.mapping(function(fallback)
-- if vim.fn['vsnip#jumpable'](1) == 1 then
-- feedkey('<Plug>(vsnip-jump-next)', '')
-- else
-- local copilot_keys = vim.fn['copilot#Accept']()
-- if copilot_keys ~= '' then
-- vim.api.nvim_feedkeys(copilot_keys, 'i', true)
-- else
-- fallback()
-- end
-- end
-- end, { 'i', 's' }),
-- },
}
-- local cmp = require "cmp"
-- local luasnip = require "luasnip"
-- return {
-- preselect = cmp.PreselectMode.None,
-- mapping = {
-- ["<CR>"] = cmp.mapping.confirm { select = false },
-- ["<Tab>"] = cmp.mapping(function(fallback)
-- if luasnip.expandable() then
-- luasnip.expand()
-- elseif luasnip.expand_or_jumpable() then
-- luasnip.expand_or_jump()
-- fallback()
-- end
-- end, {
-- "i",
-- "s",
-- }),
-- },
-- }