Compare commits
4 commits
c40f81ac65
...
73e1b5f4f5
| Author | SHA1 | Date | |
|---|---|---|---|
| 73e1b5f4f5 | |||
| 8b0a257ee5 | |||
| 7cacb020e0 | |||
| 5ad5d4e4af |
1 changed files with 9 additions and 5 deletions
14
init.lua
14
init.lua
|
|
@ -110,6 +110,9 @@ vim.keymap.set("n", "<C-L>", ":nohlsearch<CR>")
|
||||||
---- Treesitter ----
|
---- Treesitter ----
|
||||||
local ts = require("nvim-treesitter.configs")
|
local ts = require("nvim-treesitter.configs")
|
||||||
ts.setup({
|
ts.setup({
|
||||||
|
auto_install = true,
|
||||||
|
sync_install = false,
|
||||||
|
ignore_install = {},
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"c",
|
||||||
|
|
@ -127,6 +130,7 @@ ts.setup({
|
||||||
"gitignore",
|
"gitignore",
|
||||||
"go",
|
"go",
|
||||||
"html",
|
"html",
|
||||||
|
"htmldjango",
|
||||||
"http",
|
"http",
|
||||||
"ini",
|
"ini",
|
||||||
"javascript",
|
"javascript",
|
||||||
|
|
@ -181,6 +185,9 @@ formatter.setup({
|
||||||
lua = {
|
lua = {
|
||||||
require("formatter.filetypes.lua").stylua,
|
require("formatter.filetypes.lua").stylua,
|
||||||
},
|
},
|
||||||
|
terraform = {
|
||||||
|
require("formatter.filetypes.terraform").terraformfmt,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
["*"] = {
|
["*"] = {
|
||||||
-- "formatter.filetypes.any" defines default configurations for any
|
-- "formatter.filetypes.any" defines default configurations for any
|
||||||
|
|
@ -262,9 +269,6 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
})
|
})
|
||||||
|
|
||||||
---- Plugins ----
|
---- Plugins ----
|
||||||
-- Go
|
|
||||||
g.ale_go_golangci_lint_options = ""
|
|
||||||
g.ale_go_golangci_lint_package = 1
|
|
||||||
---- nvim-lint ----
|
---- nvim-lint ----
|
||||||
local lint = require("lint")
|
local lint = require("lint")
|
||||||
local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
||||||
|
|
@ -278,6 +282,7 @@ local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
||||||
|
|
||||||
-- clippy --
|
-- clippy --
|
||||||
lint.linters.clippy = {
|
lint.linters.clippy = {
|
||||||
|
name = "clippy",
|
||||||
cmd = "cargo clippy",
|
cmd = "cargo clippy",
|
||||||
stdin = false,
|
stdin = false,
|
||||||
append_fname = true,
|
append_fname = true,
|
||||||
|
|
@ -292,8 +297,7 @@ lint.linters.clippy = {
|
||||||
lint.linters.sqlfluff.args = {
|
lint.linters.sqlfluff.args = {
|
||||||
"lint",
|
"lint",
|
||||||
"--format=json",
|
"--format=json",
|
||||||
-- note: users will have to replace the --dialect argument accordingly
|
"--dialect=postgres",
|
||||||
"--dialect=sqlite",
|
|
||||||
"-",
|
"-",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue