Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
0171ced17c | |||
592fac89ea | |||
a2b08f49bb | |||
a39b81f4b9 | |||
634b1c2964 | |||
e916c47d3e |
@ -1,111 +0,0 @@
|
|||||||
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
|
|
@ -1,34 +0,0 @@
|
|||||||
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
|
|
@ -1,9 +0,0 @@
|
|||||||
std = {
|
|
||||||
globals = {
|
|
||||||
"vim",
|
|
||||||
"require",
|
|
||||||
},
|
|
||||||
read_globals = {
|
|
||||||
"fallback",
|
|
||||||
},
|
|
||||||
}
|
|
18
README.md
18
README.md
@ -15,23 +15,39 @@
|
|||||||
|
|
||||||
```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+m` keybind to open install menu.
|
- Use `Space+p+I` 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
|
||||||
|
76
init.lua
76
init.lua
@ -48,20 +48,13 @@ local config = {
|
|||||||
wrap = false, -- sets vim.opt.wrap
|
wrap = false, -- sets vim.opt.wrap
|
||||||
},
|
},
|
||||||
g = {
|
g = {
|
||||||
-- sets vim.g.mapleader
|
mapleader = " ", -- sets vim.g.mapleader
|
||||||
mapleader = " ",
|
autoformat_enabled = true, -- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled)
|
||||||
-- enable or disable auto formatting at start (lsp.formatting.format_on_save must be enabled)
|
cmp_enabled = true, -- enable completion at start
|
||||||
autoformat_enabled = true,
|
autopairs_enabled = true, -- enable autopairs at start
|
||||||
-- enable completion at start
|
diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
|
||||||
cmp_enabled = true,
|
icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
|
||||||
-- enable autopairs at start
|
ui_notifications_enabled = true, -- disable notifications when toggling UI elements
|
||||||
autopairs_enabled = true,
|
|
||||||
-- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
|
|
||||||
diagnostics_mode = 3,
|
|
||||||
-- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
|
|
||||||
icons_enabled = true,
|
|
||||||
-- disable notifications when toggling UI elements
|
|
||||||
ui_notifications_enabled = true,
|
|
||||||
-- Taglist
|
-- Taglist
|
||||||
Tlist_Use_Right_Window = 1,
|
Tlist_Use_Right_Window = 1,
|
||||||
Tlist_GainFocus_On_ToggleOpen = 1,
|
Tlist_GainFocus_On_ToggleOpen = 1,
|
||||||
@ -236,16 +229,16 @@ local config = {
|
|||||||
["<leader>xs"] = { "<cmd>VimtexToggleMain<cr>", desc = "Set current file as 'current project'" },
|
["<leader>xs"] = { "<cmd>VimtexToggleMain<cr>", desc = "Set current file as 'current project'" },
|
||||||
["<leader>xa"] = { "<cmd>VimtexContextMenu<cr>", desc = "Show context menu" },
|
["<leader>xa"] = { "<cmd>VimtexContextMenu<cr>", desc = "Show context menu" },
|
||||||
-- Trouble, Taglist
|
-- Trouble, Taglist
|
||||||
["<leader>lt"] = { desc = false, name = "Trouble, Tagbar" },
|
["<leader>ft"] = { desc = false, name = "Trouble, Tagbar" },
|
||||||
-- Taglist
|
-- Taglist
|
||||||
["<leader>ltT"] = { "<cmd>TlistToggle<cr>", desc = "Tagbar toggle" },
|
["<leader>ftT"] = { "<cmd>TlistToggle<cr>", desc = "Tagbar toggle" },
|
||||||
-- Trouble
|
-- Trouble
|
||||||
["<leader>ltx"] = { "<cmd>TroubleToggle<cr>", desc = "Toggle Trouble" },
|
["<leader>ftx"] = { "<cmd>TroubleToggle<cr>", desc = "Toggle Trouble" },
|
||||||
["<leader>ltw"] = { "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace diagnostics" },
|
["<leader>ftw"] = { "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace diagnostics" },
|
||||||
["<leader>ltd"] = { "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document diagnostics" },
|
["<leader>ftd"] = { "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document diagnostics" },
|
||||||
["<leader>ltq"] = { "<cmd>TroubleToggle quickfix<cr>", desc = "Quickfix" },
|
["<leader>ftq"] = { "<cmd>TroubleToggle quickfix<cr>", desc = "Quickfix" },
|
||||||
["<leader>ltl"] = { "<cmd>TroubleToggle loclist<cr>", desc = "Loc List" },
|
["<leader>ftl"] = { "<cmd>TroubleToggle loclist<cr>", desc = "Loc List" },
|
||||||
["<leader>ltR"] = { "<cmd>TroubleToggle lsp_references<cr>", desc = "Lsp references" },
|
["<leader>ftR"] = { "<cmd>TroubleToggle lsp_references<cr>", desc = "Lsp references" },
|
||||||
-- ["<leader>ftt"] = { "<cmd>TodoTrouble<cr>", desc = "Todo Trouble" },
|
-- ["<leader>ftt"] = { "<cmd>TodoTrouble<cr>", desc = "Todo Trouble" },
|
||||||
--
|
--
|
||||||
-- Autosave
|
-- Autosave
|
||||||
@ -293,8 +286,7 @@ local config = {
|
|||||||
-- {
|
-- {
|
||||||
-- "L3MON4D3/LuaSnip",
|
-- "L3MON4D3/LuaSnip",
|
||||||
-- config = function(plugin, opts)
|
-- config = function(plugin, opts)
|
||||||
-- -- include the default astronvim config that calls the setup call
|
-- require "plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||||
-- require "plugins.configs.luasnip"(plugin, opts)
|
|
||||||
-- -- add more custom luasnip configuration such as filetype extend or custom snippets
|
-- -- add more custom luasnip configuration such as filetype extend or custom snippets
|
||||||
-- local luasnip = require "luasnip"
|
-- local luasnip = require "luasnip"
|
||||||
-- luasnip.filetype_extend("javascript", { "javascriptreact" })
|
-- luasnip.filetype_extend("javascript", { "javascriptreact" })
|
||||||
@ -303,8 +295,7 @@ local config = {
|
|||||||
-- {
|
-- {
|
||||||
-- "windwp/nvim-autopairs",
|
-- "windwp/nvim-autopairs",
|
||||||
-- config = function(plugin, opts)
|
-- config = function(plugin, opts)
|
||||||
-- -- include the default astronvim config that calls the setup call
|
-- require "plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||||
-- require "plugins.configs.nvim-autopairs"(plugin, opts)
|
|
||||||
-- -- add more custom autopairs configuration such as custom rules
|
-- -- add more custom autopairs configuration such as custom rules
|
||||||
-- local npairs = require "nvim-autopairs"
|
-- local npairs = require "nvim-autopairs"
|
||||||
-- local Rule = require "nvim-autopairs.rule"
|
-- local Rule = require "nvim-autopairs.rule"
|
||||||
@ -479,27 +470,16 @@ local config = {
|
|||||||
-- * keyword: highlights of the keyword
|
-- * keyword: highlights of the keyword
|
||||||
-- * after: highlights after the keyword (todo text)
|
-- * after: highlights after the keyword (todo text)
|
||||||
highlight = {
|
highlight = {
|
||||||
-- enable multine todo comments
|
multiline = true, -- enable multine todo comments
|
||||||
multiline = true,
|
multiline_pattern = "^.", -- lua pattern to match the next multiline from the start of the matched keyword
|
||||||
-- lua pattern to match the next multiline from the start of the matched keyword
|
multiline_context = 10, -- extra lines that will be re-evaluated when changing a line
|
||||||
multiline_pattern = "^.",
|
before = "", -- "fg" or "bg" or empty
|
||||||
-- extra lines that will be re-evaluated when changing a line
|
keyword = "wide", -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty. (wide and wide_bg is the same as bg, but will also highlight surrounding characters, wide_fg acts accordingly but with fg)
|
||||||
multiline_context = 10,
|
after = "fg", -- "fg" or "bg" or empty
|
||||||
-- "fg" or "bg" or empty
|
pattern = [[.*<(KEYWORDS)\s*:]], -- pattern or table of patterns, used for highlighting (vim regex)
|
||||||
before = "",
|
comments_only = true, -- uses treesitter to match keywords in comments only
|
||||||
-- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty. (wide and wide_bg is the same as bg,
|
max_line_len = 400, -- ignore lines longer than this
|
||||||
-- but will also highlight surrounding characters, wide_fg acts accordingly but with fg)
|
exclude = {}, -- list of file types to exclude highlighting
|
||||||
keyword = "wide",
|
|
||||||
-- "fg" or "bg" or empty
|
|
||||||
after = "fg",
|
|
||||||
-- pattern or table of patterns, used for highlighting (vim regex)
|
|
||||||
pattern = [[.*<(KEYWORDS)\s*:]],
|
|
||||||
-- uses treesitter to match keywords in comments only
|
|
||||||
comments_only = true,
|
|
||||||
-- ignore lines longer than this
|
|
||||||
max_line_len = 400,
|
|
||||||
-- list of file types to exclude highlighting
|
|
||||||
exclude = {},
|
|
||||||
},
|
},
|
||||||
-- list of named colors where we try to extract the guifg from the
|
-- list of named colors where we try to extract the guifg from the
|
||||||
-- list of highlight groups or use the hex color if hl not found as a fallback
|
-- list of highlight groups or use the hex color if hl not found as a fallback
|
||||||
@ -575,6 +555,8 @@ local config = {
|
|||||||
},
|
},
|
||||||
{ "stevearc/dressing.nvim" },
|
{ "stevearc/dressing.nvim" },
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Live server
|
-- Live server
|
||||||
{
|
{
|
||||||
"aurum77/live-server.nvim",
|
"aurum77/live-server.nvim",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user