Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de317e5
commit 79c8c9f
Showing
8 changed files
with
652 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
local formatters = require "lvim.lsp.null-ls.formatters" | ||
formatters.setup { | ||
{ command = "black", filetypes = { "python" } }, | ||
{ command = "isort", filetypes = { "python" } }, | ||
} | ||
|
||
-- -- set additional linters | ||
local linters = require "lvim.lsp.null-ls.linters" | ||
linters.setup { | ||
{ command = "ruff", filetypes = { "python" } }, | ||
} | ||
|
||
-- set lsp | ||
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pyright", "ruff_lsp" }) | ||
local lsp_manager = require("lvim.lsp.manager") | ||
|
||
lsp_manager.setup("pyright", { | ||
on_init = require("lvim.lsp").common_on_init, | ||
capabilities = require("lvim.lsp").common_capabilities(), | ||
}) | ||
|
||
lsp_manager.setup("ruff_lsp", { | ||
on_init = require("lvim.lsp").common_on_init, | ||
capabilities = require("lvim.lsp").common_capabilities(), | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
local formatters = require "lvim.lsp.null-ls.formatters" | ||
formatters.setup { | ||
{ | ||
-- each formatter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration | ||
command = "prettier", | ||
---@usage arguments to pass to the formatter | ||
-- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}` | ||
extra_args = { "--print-with", "100" }, | ||
---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports. | ||
filetypes = { "typescript", "typescriptreact" }, | ||
}, | ||
} | ||
|
||
-- -- set additional linters | ||
local linters = require "lvim.lsp.null-ls.linters" | ||
linters.setup { | ||
{ command = "prettier", filetypes = { "typescript, typescriptreact" } }, | ||
} |
Empty file.
Oops, something went wrong.