irongit

A readme explaining how to make neovim work fast

hygo-vim/lua/plugins/lspconfig.lua
53 lines1.2 KBLua
1return {
2 {
3 "neovim/nvim-lspconfig",
4 opts = {
5 diagnostics = {
6 underline = true,
7 },
8 servers = {
9 basedpyright = {
10 enabled = true,
11 settings = {
12 basedpyright = {
13 analysis = {},
14 },
15 python = {
16 pythonPath = "/home/huncho/anaconda3/bin/python",
17 },
18 },
19 },
20 pyright = {
21 enabled = false,
22 settings = {
23 python = {
24 pythonPath = "/home/huncho/anaconda3/bin/python",
25 analysis = {
26 autoSearchPaths = true,
27 useLibraryCodeForTypes = true,
28 typeCheckingMode = "basic",
29 diagnosticMode = "workspace",
30 },
31 },
32 },
33 },
34 },
35 inlay_hints = {
36 enabled = false,
37 },
38 },
39 },
40 {
41 "nvimtools/none-ls.nvim",
42 opts = function(_, opts)
43 local nls = require("null-ls")
44 opts.sources = opts.sources or {}
45 vim.list_extend(opts.sources, {
46 -- nls.builtins.diagnostics.mypy.with({
47 -- command = "mypy",
48 -- extra_args = { "--config-file", vim.fn.getcwd() .. "/mypy.ini" },
49 -- }),
50 })
51 end,
52 },
53}