-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux-tools.lua
More file actions
72 lines (69 loc) · 1.45 KB
/
linux-tools.lua
File metadata and controls
72 lines (69 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
return {
-- Bash/Shell scripting support
{
"neovim/nvim-lspconfig",
opts = {
servers = {
bashls = {
filetypes = { "sh", "bash", "zsh" },
},
},
},
},
-- Treesitter for Linux/Shell
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"bash",
"fish",
"make",
"cmake",
"ninja",
"toml",
"yaml",
"ini",
})
-- Enable treesitter-based indentation
opts.indent = opts.indent or {}
opts.indent.enable = true
end,
},
-- Mason tools for Linux development
{
"mason-org/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, {
"bash-language-server",
"shellcheck",
"shfmt",
"yamllint",
"yamlfmt",
"actionlint",
})
end,
},
-- Better terminal integration
{
"akinsho/toggleterm.nvim",
version = "*",
opts = {
size = 20,
open_mapping = [[<c-`>]],
hide_numbers = true,
shade_terminals = true,
shading_factor = 2,
start_in_insert = true,
insert_mappings = true,
persist_size = true,
direction = "float",
close_on_exit = true,
shell = vim.o.shell,
float_opts = {
border = "curved",
winblend = 3,
},
},
},
}