Skip to content

Commit 01f7fff

Browse files
committed
Update nvim plugins rustaceanvim and venv-selector, and add django lsp plugin
1 parent 1670666 commit 01f7fff

File tree

6 files changed

+47
-26
lines changed

6 files changed

+47
-26
lines changed

.config/mpd/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ sticker.sql
22
database
33
playlists/
44
mpd.conf
5+
pid

.config/nvim/lazy-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
return {
2+
cmd = { "djlsp", "--enable-log" },
3+
filetypes = { "django-html", "htmldjango", "python" },
4+
root_dir = require("lspconfig.util").root_pattern(
5+
"manage.py",
6+
"pyproject.toml"
7+
),
8+
}

.config/nvim/lua/plugins/lsp/nvim-lspconfig.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ return {
1313

1414
-- Servers with custom config
1515
local custom_servers = {
16+
djlsp = "django",
1617
hls = "haskell",
1718
lua_ls = "lua",
1819
nil_ls = "nix",
@@ -31,6 +32,7 @@ return {
3132

3233
vim.lsp.enable({
3334
"bashls",
35+
"djlsp",
3436
"dockerls",
3537
"hls",
3638
"lua_ls",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
return {
22
"mrcjkb/rustaceanvim",
3-
version = "^5", -- Recommended
3+
version = "^6", -- Recommended
44
lazy = false, -- This plugin is already lazy
55
}

.config/nvim/lua/plugins/venv-selector.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
return {
22
"linux-cultist/venv-selector.nvim",
3+
commit = "ffb04a0",
34
dependencies = {
45
"neovim/nvim-lspconfig",
5-
"mfussenegger/nvim-dap",
6-
"mfussenegger/nvim-dap-python", --optional
76
{
87
"nvim-telescope/telescope.nvim",
98
branch = "0.1.x",
109
dependencies = { "nvim-lua/plenary.nvim" },
1110
},
11+
"mfussenegger/nvim-dap",
12+
{
13+
"mfussenegger/nvim-dap-python",
14+
build = {
15+
type = "builtin",
16+
copy_directories = {
17+
"doc",
18+
},
19+
},
20+
}, -- optional
21+
"ibhagwan/fzf-lua", -- optional
1222
},
1323
ft = "python", -- Load when opening Python files
1424
keys = {

0 commit comments

Comments
 (0)