Allow shadowing pylsp/elixirls versions.
parent
6b1d507283
commit
85b82055d3
|
@ -18,6 +18,7 @@
|
|||
gnumake
|
||||
mullvad-vpn
|
||||
python3
|
||||
unzip
|
||||
wezterm
|
||||
zotero
|
||||
];
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
programs.neovim = {
|
||||
nvim-lspconfig = ''
|
||||
require('init.lsp').setup(require('lspconfig').elixirls) {
|
||||
-- Keep command relative. Compatibility of `elixir-ls` depends tightly
|
||||
-- on -- the version of elixir being used so this allows local (i.e.
|
||||
-- within nix shells) versions of `elixir-ls` to override the version
|
||||
-- specified -- in `extraPackages`.
|
||||
cmd = { 'elixir-ls' },
|
||||
}
|
||||
'';
|
||||
|
|
|
@ -12,9 +12,7 @@ in
|
|||
{
|
||||
programs.neovim = {
|
||||
nvim-dap = ''
|
||||
require('init.python').nvim_dap({
|
||||
command = '${venv}/bin/python3.10',
|
||||
})
|
||||
require('init.python').nvim_dap()
|
||||
'';
|
||||
|
||||
nvim-lspconfig = ''
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
local M = {}
|
||||
|
||||
function M.nvim_dap(options)
|
||||
function M.nvim_dap()
|
||||
local dap = require('dap')
|
||||
|
||||
dap.adapters.python = function(callback, config)
|
||||
callback({
|
||||
name = 'debugpy',
|
||||
type = 'executable',
|
||||
command = options.command,
|
||||
command = 'python3',
|
||||
args = { '-m', 'debugpy.adapter' },
|
||||
options = {
|
||||
source_filetype = 'python',
|
||||
|
|
Loading…
Reference in New Issue