Skip to content

Commit 6ce31c9

Browse files
committed
feat: add better typing support in lua files
1 parent db41f35 commit 6ce31c9

File tree

28 files changed

+200
-3
lines changed

28 files changed

+200
-3
lines changed

home/dot_config/exact_nvim/exact_lua/exact_plugins/colorscheme.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
{
34
'catppuccin/nvim',

home/dot_config/exact_nvim/exact_lua/exact_plugins/conform.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
{
34
'stevearc/conform.nvim',

home/dot_config/exact_nvim/exact_lua/exact_plugins/core.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
{
34
'LazyVim/LazyVim',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
{ 'folke/tokyonight.nvim', enabled = false },
34
}

home/dot_config/exact_nvim/exact_lua/exact_plugins/editor.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
-- Go forward/backward with square brackets
34
{

home/dot_config/exact_nvim/exact_lua/exact_plugins/git.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ local get_gh_env = function()
1414
}
1515
end
1616

17+
---@type LazySpec[]
1718
return {
1819
{
1920
'tpope/vim-fugitive',

home/dot_config/exact_nvim/exact_lua/exact_plugins/laravel.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
{
34
'ricardoramirezr/blade-nav.nvim',
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---@type LazySpec[]
2+
return {
3+
{
4+
'folke/lazydev.nvim',
5+
dependencies = {
6+
{ 'Bilal2453/luvit-meta', lazy = true },
7+
{ 'justinsgithub/wezterm-types', lazy = true },
8+
},
9+
ft = 'lua',
10+
cmd = 'LazyDev',
11+
opts = function(_, opts)
12+
vim.list_extend(opts.library, {
13+
{ path = '${3rd}/luv/library', words = { 'vim%.uv' } },
14+
{ path = '${3rd}/luassert/library', words = { 'assert' } },
15+
{ path = '${3rd}/busted/library', words = { 'describe' } },
16+
{ path = 'wezterm-types', mods = { 'wezterm' } },
17+
{ path = 'lazy.nvim', words = { 'LazySpec' } },
18+
})
19+
end,
20+
},
21+
}

home/dot_config/exact_nvim/exact_lua/exact_plugins/local_plugins.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---@type LazySpec[]
12
return {
23
{
34
dir = vim.g.local_plugins_path .. 'copy-filepath',

home/dot_config/exact_nvim/exact_lua/exact_plugins/lsp.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local get_root_dir = function(...)
33
return util.root_pattern('package.json', 'tsconfig.json')(...) or util.root_pattern('.git')(...)
44
end
55

6+
---@type LazySpec[]
67
return {
78
-- tools
89
{
@@ -24,8 +25,9 @@ return {
2425
-- lsp servers
2526
{
2627
'neovim/nvim-lspconfig',
27-
---@class PluginLspOpts
28+
---@type lspconfig.options
2829
opts = {
30+
diagnostics = { virtual_text = { prefix = 'icons' } },
2931
inlay_hints = { enabled = false },
3032
servers = {
3133
cssls = {},
@@ -39,7 +41,7 @@ return {
3941
init_options = {
4042
enabledFeatures = {
4143
'codeActions',
42-
'codeLens',
44+
-- "codeLens", -- adds "Run/Debug Test" lenses and ruby-lsp-rails "Go to Controller Action Route"
4345
'completion',
4446
'definition',
4547
'diagnostics',

0 commit comments

Comments
 (0)