A readme explaining how to make neovim work fast
added dotenv and set lsp to basedpyright for python
5 files changed, +42 -1
+3-1lazy-lock.json
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, |
| 12 | 12 | "conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" }, |
| 13 | 13 | "copilot.lua": { "branch": "master", "commit": "a5c390f8d8e85b501b22dcb2f30e0cbbd69d5ff0" }, |
| 14 | + "dotenv.nvim": { "branch": "main", "commit": "7d516e9293c6e3ac21830fb10a4e8674c02747c6" }, | |
| 14 | 15 | "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, |
| 15 | 16 | "firenvim": { "branch": "master", "commit": "c4ab7d2aeb145cd93db8660cb134f771722f2b5e" }, |
| 16 | 17 | "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" }, |
| @@ -32,6 +33,7 @@ | ||
| 32 | 33 | "mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" }, |
| 33 | 34 | "multicursors.nvim": { "branch": "main", "commit": "72225ea9e4443c3f4b9df91d0193e07c4ee8d382" }, |
| 34 | 35 | "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, |
| 36 | + "none-ls.nvim": { "branch": "main", "commit": "b3dfc91b58f24b5496c46217101179e55a32364a" }, | |
| 35 | 37 | "nui.nvim": { "branch": "main", "commit": "8d5b0b568517935d3c84f257f272ef004d9f5a59" }, |
| 36 | 38 | "nvim-lint": { "branch": "master", "commit": "9dfb77ef6c5092a19502883c02dc5a02ec648729" }, |
| 37 | 39 | "nvim-lspconfig": { "branch": "master", "commit": "022ddc8fe9b822b6962ee658e91a584599604035" }, |
| @@ -42,7 +44,7 @@ | ||
| 42 | 44 | "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, |
| 43 | 45 | "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, |
| 44 | 46 | "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, |
| 45 | - "render-markdown.nvim": { "branch": "main", "commit": "7f81e9dcc15504c044f20df39d28a590cd5c6ca5" }, | |
| 47 | + "render-markdown.nvim": { "branch": "main", "commit": "bd5657594bf1a96b04f900c87e8d74226a54d832" }, | |
| 46 | 48 | "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, |
| 47 | 49 | "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, |
| 48 | 50 | "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }, |
+1-0lazyvim.json
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "lazyvim.plugins.extras.lang.json", |
| 12 | 12 | "lazyvim.plugins.extras.lang.markdown", |
| 13 | 13 | "lazyvim.plugins.extras.lang.python", |
| 14 | + "lazyvim.plugins.extras.lsp.none-ls", | |
| 14 | 15 | "lazyvim.plugins.extras.ui.alpha", |
| 15 | 16 | "lazyvim.plugins.extras.util.gitui", |
| 16 | 17 | "lazyvim.plugins.extras.util.project" |
+10-0lua/plugins/dotenv.lua
| @@ -0,0 +1,10 @@ | ||
| 1 | +return { | |
| 2 | + "ellisonleao/dotenv.nvim", | |
| 3 | + config = function() | |
| 4 | + require("dotenv").setup({ | |
| 5 | + enable_on_load = true, | |
| 6 | + verbose = true, | |
| 7 | + file_name = ".env", | |
| 8 | + }) | |
| 9 | + end, | |
| 10 | +} |
+28-0lua/plugins/lspconfig.lua
| @@ -2,8 +2,23 @@ return { | ||
| 2 | 2 | { |
| 3 | 3 | "neovim/nvim-lspconfig", |
| 4 | 4 | opts = { |
| 5 | + diagnostics = { | |
| 6 | + underline = true, | |
| 7 | + }, | |
| 5 | 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 | + }, | |
| 6 | 20 | pyright = { |
| 21 | + enabled = false, | |
| 7 | 22 | settings = { |
| 8 | 23 | python = { |
| 9 | 24 | pythonPath = "/home/huncho/anaconda3/bin/python", |
| @@ -22,4 +37,17 @@ return { | ||
| 22 | 37 | }, |
| 23 | 38 | }, |
| 24 | 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 | + }, | |
| 25 | 53 | } |
+0-0test_files/main.py
No content changes (mode or rename only).