irongit

A readme explaining how to make neovim work fast

added dotenv and set lsp to basedpyright for python

huncholanehuncholaneauthored
parent cbe73aecommit 6c32118cc36d20b877cfdd8944c2675d0a0e5f7bBrowse files

5 files changed, +42 -1

+3-1lazy-lock.json
@@ -11,6 +11,7 @@
1111 "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
1212 "conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" },
1313 "copilot.lua": { "branch": "master", "commit": "a5c390f8d8e85b501b22dcb2f30e0cbbd69d5ff0" },
14+ "dotenv.nvim": { "branch": "main", "commit": "7d516e9293c6e3ac21830fb10a4e8674c02747c6" },
1415 "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
1516 "firenvim": { "branch": "master", "commit": "c4ab7d2aeb145cd93db8660cb134f771722f2b5e" },
1617 "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
@@ -32,6 +33,7 @@
3233 "mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" },
3334 "multicursors.nvim": { "branch": "main", "commit": "72225ea9e4443c3f4b9df91d0193e07c4ee8d382" },
3435 "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
36+ "none-ls.nvim": { "branch": "main", "commit": "b3dfc91b58f24b5496c46217101179e55a32364a" },
3537 "nui.nvim": { "branch": "main", "commit": "8d5b0b568517935d3c84f257f272ef004d9f5a59" },
3638 "nvim-lint": { "branch": "master", "commit": "9dfb77ef6c5092a19502883c02dc5a02ec648729" },
3739 "nvim-lspconfig": { "branch": "master", "commit": "022ddc8fe9b822b6962ee658e91a584599604035" },
@@ -42,7 +44,7 @@
4244 "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
4345 "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
4446 "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
45- "render-markdown.nvim": { "branch": "main", "commit": "7f81e9dcc15504c044f20df39d28a590cd5c6ca5" },
47+ "render-markdown.nvim": { "branch": "main", "commit": "bd5657594bf1a96b04f900c87e8d74226a54d832" },
4648 "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
4749 "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
4850 "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
+1-0lazyvim.json
@@ -11,6 +11,7 @@
1111 "lazyvim.plugins.extras.lang.json",
1212 "lazyvim.plugins.extras.lang.markdown",
1313 "lazyvim.plugins.extras.lang.python",
14+ "lazyvim.plugins.extras.lsp.none-ls",
1415 "lazyvim.plugins.extras.ui.alpha",
1516 "lazyvim.plugins.extras.util.gitui",
1617 "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 {
22 {
33 "neovim/nvim-lspconfig",
44 opts = {
5+ diagnostics = {
6+ underline = true,
7+ },
58 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+ },
620 pyright = {
21+ enabled = false,
722 settings = {
823 python = {
924 pythonPath = "/home/huncho/anaconda3/bin/python",
@@ -22,4 +37,17 @@ return {
2237 },
2338 },
2439 },
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+ },
2553 }
+0-0test_files/main.py

No content changes (mode or rename only).