Skip to content

Commit 685d57f

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

File tree

6 files changed

+46
-26
lines changed

6 files changed

+46
-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: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@ return {
22
"linux-cultist/venv-selector.nvim",
33
dependencies = {
44
"neovim/nvim-lspconfig",
5-
"mfussenegger/nvim-dap",
6-
"mfussenegger/nvim-dap-python", --optional
75
{
86
"nvim-telescope/telescope.nvim",
97
branch = "0.1.x",
108
dependencies = { "nvim-lua/plenary.nvim" },
119
},
10+
"mfussenegger/nvim-dap",
11+
{
12+
"mfussenegger/nvim-dap-python",
13+
build = {
14+
type = "builtin",
15+
copy_directories = {
16+
"doc",
17+
},
18+
},
19+
}, -- optional
20+
"ibhagwan/fzf-lua", -- optional
1221
},
1322
ft = "python", -- Load when opening Python files
1423
keys = {

0 commit comments

Comments
 (0)