Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 4c6fdee

Browse files
astronvim: updates from user_example template repository
Updates from https://github.com/AstroNvim/user_example repository from which practicalli/astronvim-config was created on May 6 2023 - luacheck config - neoconf config: disable lua_ls format - mappings: examples for H & L bindings to navigate open buffers left & right
1 parent 5e00d78 commit 4c6fdee

File tree

5 files changed

+55
-0
lines changed

5 files changed

+55
-0
lines changed

.luacheckrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- Global objects
2+
globals = {
3+
"astronvim",
4+
"astronvim_installation",
5+
"vim",
6+
"bit",
7+
}
8+
9+
-- Rerun tests only if their modification time changed
10+
cache = true
11+
12+
-- Don't report unused self arguments of methods
13+
self = false
14+
15+
ignore = {
16+
"631", -- max_line_length
17+
"212/_.*", -- unused argument, for vars with "_" prefix
18+
}

.neoconf.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"neodev": {
3+
"library": {
4+
"enabled": true,
5+
"plugins": true
6+
}
7+
},
8+
"neoconf": {
9+
"plugins": {
10+
"lua_ls": {
11+
"enabled": true
12+
}
13+
}
14+
},
15+
"lspconfig": {
16+
"lua_ls": {
17+
"Lua.format.enable": false
18+
}
19+
}
20+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Unreleased
2+
3+
# 2024-02-27
24
## Added
35
- community: overseer task manager for makefile and other tasks, leader x tasks mappings
46
- community: add spectre plugin for project wide search and replace
@@ -9,6 +11,8 @@
911
- snippet: update post-header for weekly update
1012
- init: treat ClojureDart .cljd files as Clojure files (syntax highlighting)
1113

14+
## Changed
15+
- astronvim: updates from user_example template repository - luacheck & neoconf config
1216

1317
# 2023-11-13
1418
## Added

mappings.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ return {
1010
-- first key is the mode
1111
n = {
1212
-- second key is the lefthand side of the map
13+
14+
-- Example mappings
15+
-- L = {
16+
-- function() require("astronvim.utils.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end,
17+
-- desc = "Next buffer",
18+
-- },
19+
-- H = {
20+
-- function() require("astronvim.utils.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
21+
-- desc = "Previous buffer",
22+
-- },
23+
24+
-- Toggle last open buffer
1325
["<leader><tab>"] = { "<cmd>b#<cr>", desc = "Last tab" },
1426

1527
-- Save prompting for file name

options.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ return {
2121
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)
2222
icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
2323
ui_notifications_enabled = true, -- disable notifications when toggling UI elements
24+
resession_enabled = false, -- enable experimental resession.nvim session management (will be default in AstroNvim v4)
2425
VM_leader = "gm", -- Visual Multi Leader (multiple cursors)
2526
},
2627
}

0 commit comments

Comments
 (0)